index

Find an element and return its index.

Exported from

Modifiers

sealed

Arguments

eltAn instance of <object>.  Passed as the first argument to test.
seqAn instance of <sequence>.
test:An instance of <function>.  The test function to find an element.  Its signature is (elt, <object>) => (<object>).  Defaults to =.
failure:An instance of <object>.  The value returned if no matching element is found.  Defaults to #f.

Values

indexAn instance of <integer> or the failure value.  The index of the found element.
Sequence-Utilities, written by Matthias Hölzl, provides common or oft-used operations performed on <sequence>s.
The class of all Dylan objects.
The class of collections whose keys are consecutive integers starting from zero.
The class of objects that can be applied to arguments.
Compares two objects for equality.
The class of integers.