MyIterable<T> extension

An extension on the Iterable class to provide additional functionality.

on

Properties

cFirst → T?

Available on Iterable<T>, provided by the MyIterable extension

Get the first item from the iterable if it's not empty.
no setter

Methods

cFirstWhere(bool test(T element)) → T?

Available on Iterable<T>, provided by the MyIterable extension

Get the first item from the iterable that satisfies a condition.