-
public final class CollectionsKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> TremoveFirstOrNull(Iterable<T> $self, Function1<T, Boolean> predicate)Returns the first element matching the given predicate, or nullif element was not found.-
-
Method Detail
-
removeFirstOrNull
final static <T extends Any> T removeFirstOrNull(Iterable<T> $self, Function1<T, Boolean> predicate)
Returns the first element matching the given predicate, or
nullif element was not found. Also removes that first element from source collection.
-
-
-
-