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 Lists:
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 Lists:
Apply has no effect on atoms: