Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

All snippets
Create a snippet
Full search

Quick search:


Editing Snippet ID: #1006407
Snippet name:
Category, Type:
Content:
// TODO: old syntax, get rid of static <A> A firstThat(Iterable<A> l, O pred) { if (l != null) for (A a : l) if (checkCondition(pred, a)) ret a; null; } static <A> A firstThat(A[] l, IF1<A, Bool> pred) { if (l != null) for (A a : l) if (pred.get(a)) ret a; null; } static <A> A firstThat(Iterable<A> l, IF1<A, Bool> pred) { ret firstThat(l, (O) pred); } static <A> A lambdaMapLike firstThat(IF1<A, Bool> pred, Iterable<A> l) { ret firstThat(l, pred); }
Comment:
Public (visible to everyone):
Created: 2017-01-01 17:50:31

This page without fancy editor.