slice method
Returns a new collection containing elements in the range
[from, until).
Implementation
@override
IList<A> slice(int from, int until) {
final lo = max(from, 0);
if (until <= lo || isEmpty) {
return Nil<A>();
} else {
return drop(lo).take(until - lo);
}
}