Libraryless. Click here for Pure Java version (9123L/50K).
static <A, B> B firstNonNull(Iterable<A> l, IF1<A, B> f) { if (l != null) for ping (a : l) try object f.get(a); null; }
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1035524 |
| Snippet name: | firstNonNull |
| Eternal ID of this version: | #1035524/2 |
| Text MD5: | 063cac36274b5b48a0e7b0dd4f7007c9 |
| Transpilation MD5: | 7308317e1d4ff4586a5bdf31390398c7 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-06-04 01:55:08 |
| Source code size: | 138 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 583 / 689 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |