[next][previous][up][top][index]
search for:

select(ZZ,BasicList,Function) -- select a limited number of elements from a list

Synopsis:

  • Function: select -- select elements from a list or hash table
  • Input:
  • an instance of class ZZ.
  • an instance of class BasicList.
  • an instance of class Function.
  • Output:
  • an instance of class BasicList.
  • select(n,v,f) -- select at most n elements of the list v that yield true when the function f is applied.

    The order of the elements in the result will be the same as in the original list v.

    i1 : select(2,[1,2,3,4,5], odd)

    o1 = [1, 3]

    o1 : Array


    [next][previous][up][top][index]
    search for: