|
Apply
Apply[f, expr] or f @@ expr replaces the head of expr by f.
Apply[f, expr, levelspec] replaces heads in parts of expr specified by levelspec.
Examples: Apply[f, a, b, c ]  ; Apply[Plus, g[a, b]]  .
Level specifications are described in Section A.3.6.
The default value for levelspec in Apply is {0}.
f @@@ expr is equivalent to Apply[f, expr, 1 ].
Examples: Apply[f,  a,b , c,d ]  .
Apply[f,  a,b , c,d , 1 ]  .
Apply[f,    a   , -2]  .
See The Mathematica Book: Section 1.8.12 and Section 2.2.3.
See also: Map, Scan, Level, Operate, MapThread.
Further Examples
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT. SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION. | |