/// <summary>Returns a sub-range of this list.</summary> public IListSource <T> Slice(int start, int count = int.MaxValue) { return(_list.Slice(_offset + start, count)); }
public static IListSource <T> Take <T>(this IListSource <T> list, int count) { return(list.Slice(0, count)); }
public static IRange <T> Slice <T>(this IListSource <T> list, NumRange <int, MathI> range) { return(list.Slice(range.Lo, range.Count)); }
public static IListSource <T> Skip <T>(this IListSource <T> list, int start) { return(list.Slice(start)); }