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

apply(BasicList,Function) -- apply function to each element

Synopsis:

  • Usage: r = apply(v,f)
  • Function: apply -- apply a function to each element
  • Input:
  • v, an instance of class BasicList.
  • f, an instance of class Function.
  • Output:
  • r, an instance of class BasicList: the list obtained by applying f to each element of v.
  • The result r will have the same class as v.

    i1 : apply([1,3,5,7], i->i^2)

    o1 = [1, 9, 25, 49]

    o1 : Array

    See also:

  • VisibleList / Function -- apply a function to each member of a list
  • Function \ VisibleList -- apply a function to each member of a list

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