take(Object container, Object num) -> Object
Takes the first number of elements into a new container.
Parameters
- container: The source container.
- num: The maximum number of elements.
Returns
A new container containing the selected prefix.
Example