JanetDocsPlaygroundI'm feeling luckyGitHub sign in

some



    function
    boot.janet on line 1896, column 1

    (some pred xs)

    Returns nil if all xs are false or nil, otherwise returns the 
    result of the first truthy predicate, (pred x).


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