Next Previous Up Top Contents Index

2.6 The COMMON-EXTENSIONS module

find-element

Open generic function

Summary

Returns an element from a collection such that the element satisfies a predicate.

Signature

find-element collection function #key skip failure => element 

Arguments

collection
An instance of <collection>.

predicate
An instance of <function>.

skip
An instance of <integer>. Default value: 0.

failure
An instance of <object>. Default value: #f.

Values

element
An instance of <object>.

Library

common-extensions

Module

common-extensions

Description

Returns a collection element that satisfies predicate.

This function is identical to Dylan's find-key, but it returns the element that satisfies predicate rather than the key that corresponds to the element.


Common Dylan and Functional Extensions - 31 Mar 00

Next Previous Up Top Contents Index