JanetDocsPlaygroundI'm feeling luckyGitHub sign in

drop-while



    function
    boot.janet on line 1159, column 1

    (drop-while pred ind)

    Given a predicate, remove elements from an indexed or bytes type 
    that satisfy the predicate, and abort on first failure. Returns a 
    new tuple or string, respectively.


1 exampleSign in to add an example
Loading...
(drop-while |(> 3 $) [0 1 2 3 4 5 6 7 8 ])
# => (3 4 5 6 7 8)
leobmPlayground