Handbook
Glossary
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
dlist
dlist
quot
a
quotation
Outputs
?
a
boolean
Word description
Just like
dlist-find
except it doesn't return the object.
Notes
This operation is O(n).
Definition
USING:
kernel
;
IN:
dlists
:
dlist-any?
( ... dlist quot: ( ... value -- ... ? ) -- ... ? )
dlist-find
nip
;
inline