JanetDocsSourcePlaygroundI'm feeling luckyCommunityGitHub sign in

drop

core-api


    function
    boot.janet on line 1234, column 1

    (drop n ind)

    Drop the first `n` elements in an indexed or bytes type. Returns a 
    new tuple or string instance, respectively. If `n` is negative, 
    drops the last `n` elements instead.


2 examplesSign in to add an example
Loading...
(drop 1 "smile")
# => "mile"
sogaiuPlayground
(drop 1 [1 1 2 3 5 8])
# => '(1 2 3 5 8)
sogaiuPlayground