ListScrewDriver<E> extension

provides extensions for List

on

Methods

replaceFirstWhere(E replacement, bool predicate(E item)) bool
Replaces an item in the list with replacement where predicate 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 where predicate 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