Closed philippschweig closed 2 years ago
takeFirst and takeLast are not index safe.
takeFirst
takeLast
Excerpt of takeFirst: sublist is not index safe
extension IterableTakeFirst<E> on Iterable<E> { List<E> takeFirst(int n) { final list = this is List<E> ? this as List<E> : toList(); return list.sublist(0, n); } }
Already fixed #156
takeFirst
andtakeLast
are not index safe.Excerpt of
takeFirst
: sublist is not index safe