JanetDocsPlaygroundI'm feeling luckyGitHub sign in

take



    function
    boot.janet on line 1082, column 1

    (take n ind)

    Take the first n elements of a fiber, indexed or bytes type. 
    Returns a new array, tuple or string, respectively.


See also:first1 exampleSign in to add an example
Loading...
(take 2 [1 -2 2 3 9 -10])  # (1 -2)
btbytesPlayground