dlist-any? ( ... dlist quot: ( ... value -- ... ? ) -- ... ? )
Factor handbook » The language » Collections » Double-linked lists

Prev:dlist-filter ( ... dlist quot: ( ... value -- ... ? ) -- ... dlist' )
Next:delete-node-if* ( ... dlist quot: ( ... value -- ... ? ) -- ... obj/f ? )


Vocabulary
dlists

Inputs
dlistdlist
quota quotation


Outputs
?a boolean


Word description
Just like dlist-find except it doesn't return the object.

Notes
This operation is O(n).

Definition


: dlist-any?
( ... dlist quot: ( ... value -- ... ? ) -- ... ? )
dlist-find nip ; inline