[top][index]
search for:

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

Synopsis:

  • Operator: / -- a binary operator, usually used for division
  • Input:
  • an instance of class VisibleList.
  • an instance of class Function.
  • Output:
  • an instance of class VisibleList.
  • w / f -- apply the function f to each member of the list or sequence w returning a list or sequence containing the results. The same as apply(w,f).

    This operator is left associative, which means that w / f / g is interpreted as meaning (w / f) / g.

    i1 : {1,2,3} / (i -> i+1) / (j -> j^2)

    o1 = {4, 9, 16}

    o1 : List

    See also:

  • apply -- apply a function to each element
  • Function \ {...} -- apply a function to each member of a list
  • Code:

         -- ../../../Macaulay2/m2/classes.m2:70
         VisibleList / Function := VisibleList => (v,f) -> apply(v,f)

    [top][index]
    search for: