]> gitweb.factorcode.org Git - factor.git/commitdiff
hashtables: simplify <hashtable>.
authorJohn Benediktsson <mrjbq7@gmail.com>
Wed, 8 Jan 2014 17:56:00 +0000 (09:56 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 8 Jan 2014 17:56:00 +0000 (09:56 -0800)
core/hashtables/hashtables.factor

index 606b819ddc086e85b7a213d03544a319b368b0eb..0b6590d131b0bb75ebfcf8c016a0f55604c1510a 100644 (file)
@@ -119,7 +119,7 @@ TUPLE: hashtable
 PRIVATE>
 
 : <hashtable> ( n -- hash )
-    hashtable new [ reset-hash ] keep ; inline
+    [ 0 0 ] dip <hash-array> hashtable boa ; inline
 
 M: hashtable at*
     key@ [ 3 fixnum+fast slot t ] [ 2drop f f ] if ;