(quote \,Function,List)

f \ w -- 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 right associative, which means that g \ f \ w is interpreted as meaning g \ (f \ w).

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

o1 = {4, 9, 16}

o1 : List

The precendence is lower than that of @@. Hence, the following two examples yield the same result.

i2 : sin \ sin \ {1,2,3}

o2 = {0.745624, 0.789072, 0.140652}

o2 : List
i3 : sin @@ sin \ {1,2,3}

o3 = {0.745624, 0.789072, 0.140652}

o3 : List

See also apply, @@, and List / Function.


topindexpreviousupnext