JanetDocsPlaygroundI'm feeling luckyGitHub sign in

find-index



    function
    boot.janet on line 1040, column 1

    (find-index pred ind &opt dflt)

    Find the index of indexed type for which `pred` is true. Returns 
    `dflt` if not found.


See also:find1 exampleSign in to add an example
Loading...
(find-index |(= $ "b") ["a" "b" "c" "d"]) #=> 1
AlecTroemelPlayground