JanetDocsSourcePlaygroundI'm feeling luckyCommunityGitHub sign in

some

core-api


    function
    boot.janet on line 2214, column 1

    (some pred ind & inds)

    Returns nil if `(pred item)` is false or nil for every item in 
    `ind`. Otherwise, returns the first truthy result encountered.


See also:allany?2 examplesSign in to add an example
Loading...
(some odd? [2 4 6 8 10])
# =>
nil
sogaiuPlayground
(some even? [1 3 5 7 11 18])
# =>
true
sogaiuPlayground