hash-sets: simpler <hash-set>.

John Benediktsson 2011-09-03 16:38:42 -07:00
parent 6f388a7013
commit 5a7389a94c
1 changed files with 1 additions and 3 deletions

View File

@ -9,9 +9,7 @@ IN: hash-sets
TUPLE: hash-set { table hashtable read-only } ;
: <hash-set> ( members -- hash-set )
dup length <hashtable> [
[ dupd set-at ] curry each
] keep hash-set boa ;
unique hash-set boa ; inline
INSTANCE: hash-set set
M: hash-set in? table>> key? ; inline