Making <hash-set> faster

db4
Daniel Ehrenberg 2010-03-17 20:12:25 -04:00
parent 248730d39f
commit 67912db5f1
1 changed files with 1 additions and 1 deletions

View File

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