_foreach
Applies the parameter to each element in the received collection, and produces a collection of the results --
Function
Anything -> _foreach
(exp) -> The same Type
- Receives
- A List or Set of any sort
- exp
- An expression to run on each element of the collection
- Produces
- The results of running exp on each element
Otherwise known as "map" in many programming languages, this lets you take an expression or function
that operates on a single element, and apply it to each element in the received collection.