Method code for $list.slice()

[Turn on line numbering]
arg big_list, element;
var list, i;

// Return elementh' element of all lists in big_list
// No type or length checking done for speed purposes.
// element can be a list, in which cases, a list of list is returned
if (type(element) == 'integer)
    return map list in (big_list) to (list[element]);
else
    return map list in (big_list) to (map i in (element) to (list[i]));

["// Created 26-Mar-1995 as a part of ColdCore, see: @help Credit"]

the Cold Dark