firstOrNull<E> function
Returns the first element from the coll
; or null
if the the coll
is
empty
since 0.0.1
Implementation
E? firstOrNull<E>(Iterable<E> coll) {
var it = coll.iterator;
return it.moveNext() ? it.current : null;
}