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
dlistdlist
quota quotation


Outputs
obj/fan 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


: delete-node-if
( ... dlist quot: ( ... value -- ... ? ) -- ... obj/f )
[ [ obj>> ] ] dip compose delete-node-if* drop ; inline