Handbook
Glossary
?delete ( elt set -- ? )
Vocabulary
sets
Inputs
elt
an
object
set
a
set
Outputs
?
a
boolean
Word description
A version of
delete
which returns whether the element was removed from the set.
Definition
IN:
sets
GENERIC:
?delete
( elt set -- ? )
Methods
USING:
hash-sets
hash-sets.private
sets
;
M:
hash-set
?delete
(delete)
;
USING:
kernel
sets
;
M:
set
?delete
2dup
in?
[
delete
t
]
[
2drop
f
]
if
;
USING:
hash-sets.wrapped
hash-sets.wrapped.private
sets
;
M:
wrapped-hash-set
?delete
wrapper@
?delete
;
inline