Package 

Class CollectionsKt

    • Method Summary

      Modifier and Type Method Description
      final static <T extends Any> T removeFirstOrNull(Iterable<T> $self, Function1<T, Boolean> predicate) Returns the first element matching the given predicate, or null if element was not found.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 null if element was not found. Also removes that first element from source collection.