Handbook
Glossary
delete-node-if ( ... dlist quot: ( ... value -- ... ? ) -- ... obj/f )
Factor handbook
»
The language
»
Collections
»
Double-linked lists
Prev:
delete-node-if* ( ... dlist quot: ( ... value -- ... ? ) -- ... obj/f ? )
Next:
<hashed-dlist> ( -- search-deque )
Vocabulary
dlists
Inputs
dlist
dlist
quot
a
quotation
Outputs
obj/f
an
object
or
f
Word description
Like
delete-node-if*
but cannot distinguish from deleting a node whose value is
f
or not deleting an element.
Notes
This operation is O(n).
Definition
USING:
accessors
kernel
;
IN:
dlists
:
delete-node-if
( ... dlist quot: ( ... value -- ... ? ) -- ... obj/f )
[
[
obj>>
]
]
dip
compose
delete-node-if*
drop
;
inline