Description Usage Arguments Value Examples
Returns the first n elements of an iterable object as a list.
If n is larger than the number of elements in object, the
entire iterator is consumed.
1 | take(object, n = 1)
|
object |
an iterable object |
n |
the number of elements to return in the list |
a list of the first n items of the iterable object
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.