Beispiel #1
0
 /// <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));
 }
Beispiel #3
0
 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));
 }