_take
Produces the first N values from the received context. --
Function
Anything -> _take
(howMany) -> The same Type
- Receives
- A List of anything
- howMany
- The number of elements to take from the beginning of the List
- Produces
- The first howMany elements, if the received List had that many, or the full received List if not.
Sometimes you want just the first few elements of a List. _take does that -- think of
it as taking the beginning of the List, and leaving the rest behind.
Note that _first
is basically the same as _take(1)
.