ListScrewDriver<E> extension
provides extensions for List
- on
-
- List<
E>
- List<
Methods
-
replaceFirstWhere(
E replacement, bool predicate(E item)) → bool -
Replaces an item in the list with
replacement
wherepredicate
returns true. Returns true if an item is replaced, false otherwise. -
replaceLastWhere(
E replacement, bool predicate(E item)) → bool -
Replaces an item in the list with
replacement
wherepredicate
returns true. Returns true if an item is replaced, false otherwise.
Operators
-
operator <<(
E element) → List< E> -
adds
element
into the list and returns the list