hash-sets: simpler <hash-set>.
parent
21c30b37ee
commit
e8aa41ae57
|
@ -9,9 +9,7 @@ IN: hash-sets
|
||||||
TUPLE: hash-set { table hashtable read-only } ;
|
TUPLE: hash-set { table hashtable read-only } ;
|
||||||
|
|
||||||
: <hash-set> ( members -- hash-set )
|
: <hash-set> ( members -- hash-set )
|
||||||
dup length <hashtable> [
|
unique hash-set boa ; inline
|
||||||
[ dupd set-at ] curry each
|
|
||||||
] keep hash-set boa ;
|
|
||||||
|
|
||||||
INSTANCE: hash-set set
|
INSTANCE: hash-set set
|
||||||
M: hash-set in? table>> key? ; inline
|
M: hash-set in? table>> key? ; inline
|
||||||
|
|
Loading…
Reference in New Issue