]> gitweb.factorcode.org Git - factor.git/commitdiff
Fix abuse of spread in persistent.hashtables.
authorDoug Coleman <doug.coleman@gmail.com>
Mon, 3 Oct 2011 04:53:17 +0000 (21:53 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Mon, 3 Oct 2011 04:53:17 +0000 (21:53 -0700)
basis/persistent/hashtables/hashtables.factor

index 256baabd5ed825c457cf8b72a73cfad945286092..0159cab593c825bebc6b41ab576c40fab479b010 100644 (file)
@@ -23,7 +23,8 @@ M: persistent-hash at*
 
 M: persistent-hash new-at ( value key assoc -- assoc' )
     [
-        { [ 0 ] [ ] [ dup hashcode >fixnum ] [ root>> ] } spread
+        [ 0 ] 3dip
+        [ dup hashcode >fixnum ] [ root>> ] bi*
         (new-at) 1 0 ?
     ] [ count>> ] bi +
     persistent-hash boa ;