From e8aa41ae5785e0a12de6153feb0c19edac97f9c7 Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Sat, 3 Sep 2011 16:38:42 -0700 Subject: [PATCH] hash-sets: simpler . --- core/hash-sets/hash-sets.factor | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/hash-sets/hash-sets.factor b/core/hash-sets/hash-sets.factor index 6a03bd02d9..44de159a61 100644 --- a/core/hash-sets/hash-sets.factor +++ b/core/hash-sets/hash-sets.factor @@ -9,9 +9,7 @@ IN: hash-sets TUPLE: hash-set { table hashtable read-only } ; : ( members -- hash-set ) - dup length [ - [ 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