Apply
Apply[f, e]
(f@@e
) replaces the head of expression e
with f
.
Attributes[Apply] := {Protected}
Simple examples
Apply
is useful in performing aggregations on List
s:
Further examples
Apply
has no effect on atoms:
Apply[f, e]
(f@@e
) replaces the head of expression e
with f
.
Attributes[Apply] := {Protected}
Apply
is useful in performing aggregations on List
s:
Apply
has no effect on atoms: