Method code for $list.slice()

[Turn off line numbering]
  1: arg big_list, element;
  2: var list, i;
  3: 
  4: // Return elementh' element of all lists in big_list
  5: // No type or length checking done for speed purposes.
  6: // element can be a list, in which cases, a list of list is returned
  7: if (type(element) == 'integer)
  8:     return map list in (big_list) to (list[element]);
  9: else
 10:     return map list in (big_list) to (map i in (element) to (list[i]));

// Created 27-Mar-1995 as a part of ColdCore, see: @help Credit

Tlon