find-element

Returns an element from a collection such that the element satisfies a predicate.  This function is identical to find-key, but it returns the element that satisfies predicate rather than the key that corresponds to the element.

Exported from

Modifiers

open

Arguments

collectionAn instance of <collection>.
predicateAn instance of <function>.
skip:An instance of <integer>.  The default is 0.
failure:An instance of <object>.  The default is #f.

Values

valAn instance of <object>.
Returns the key in a collection such that the corresponding collection element satisfies a predicate.
The common-dylan module.
Miscellaneous extensions to the Dylan language.
The class of collections, aggregate data structures.
The class of objects that can be applied to arguments.
The class of integers.
The class of all Dylan objects.