]> gitweb.factorcode.org Git - factor.git/commitdiff
hashtables: use each-integer instead of iota ... each in >alist
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Wed, 6 May 2009 20:30:30 +0000 (15:30 -0500)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Wed, 6 May 2009 20:30:30 +0000 (15:30 -0500)
core/hashtables/hashtables.factor

index 0914134bb6f1b3b15c386bd0174d2bbff4911137..03bc3e01fd0d3a4a34488ffec18a6ac17ca60a4b 100644 (file)
@@ -139,14 +139,14 @@ M: hashtable set-at ( value key hash -- )
 PRIVATE>
 
 M: hashtable >alist
-    [ array>> [ length 2/ iota ] keep ] [ assoc-size <vector> ] bi [
+    [ array>> [ length 2/ ] keep ] [ assoc-size <vector> ] bi [
         [
             [
                 [ 1 fixnum-shift-fast ] dip
                 [ array-nth ] [ [ 1 fixnum+fast ] dip array-nth ] 2bi
             ] dip
             pick tombstone? [ 3drop ] [ [ 2array ] dip push-unsafe ] if
-        ] 2curry each
+        ] 2curry each-integer
     ] keep { } like ;
 
 M: hashtable clone