any?

Returns the first true value obtained by iterating over one or more collections.

Applies function to groups of corresponding elements of collection and more-collections.  If an application of function returns true, then any? returns that true value.  Otherwise function returns #f when applied to every such group, and any? returns #f.

If all the collections are sequences, any? operates in natural order.  In all cases, any? stops on the first true value returned by function.

any? (\>, #(1, 2, 3 ,4), #(5, 4, 3, 2))
⇒ #t
any? (even?, #(1, 3, 5, 7))
⇒ #f

Exported from

Modifiers

sealed

Arguments

functionAn instance of <function>.
collectionAn instance of <collection>.
#rest more-collectionsInstances of <object>.

Values

valueAn instance of <object>.
Returns the first true value obtained by iterating over one or more collections.
The common-dylan module.
Whenever possible, we have tried to keep the Dylan module pristine and unextended, preferring to add our extensions to separate modules or libraries.
The class of objects that can be applied to arguments.
The class of collections, aggregate data structures.
The class of all Dylan objects.