slc method

dynamic slc(
  1. List<int> v,
  2. int? s,
  3. int? e
)

Implementation

slc(List<int> v, int? s, int? e) {
  if (s == null || s < 0){
    s = 0;
  }
  if (e == null || e > v.length){
    e = v.length;
  }
  // can't use .constructor in case user-supplied
  return u8.fromList(v.sublist(s, e));
}