diff --git a/core/hash-sets/hash-sets.factor b/core/hash-sets/hash-sets.factor index 028c324f6a..6a03bd02d9 100644 --- a/core/hash-sets/hash-sets.factor +++ b/core/hash-sets/hash-sets.factor @@ -9,7 +9,9 @@ IN: hash-sets TUPLE: hash-set { table hashtable read-only } ; : ( members -- hash-set ) - H{ } clone [ [ dupd set-at ] curry each ] keep hash-set boa ; + dup length [ + [ dupd set-at ] curry each + ] keep hash-set boa ; INSTANCE: hash-set set M: hash-set in? table>> key? ; inline