init property

Option<Iterable<T>> get init

Returns all the of elements except the last.

Implementation

Option<Iterable<T>> get init => isEmpty ? kNone : some(take(length - 1));