Name

first-position

Usage

builtin-function

Syntax

(first-position predicate seq)

Description

Returns the position of the first item in seq that satisfies the function predicate.

user > (first-position odd? '(2 3 4))
it: 1
user > (first-position odd? '(2 4))
it: null