]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/serialize/serialize.factor
Removing integers-as-sequences
[factor.git] / basis / serialize / serialize.factor
index 9b4b0ac46b9651be7bd68fafe8668728d35c66bf..0840c778d7923473d6a3c434b8c7aed0cded8ad7 100644 (file)
@@ -240,7 +240,7 @@ SYMBOL: deserialized
     [ ] tri ;
 
 : copy-seq-to-tuple ( seq tuple -- )
-    [ dup length ] dip [ set-array-nth ] curry 2each ;
+    [ set-array-nth ] curry each-index ;
 
 : deserialize-tuple ( -- array )
     #! Ugly because we have to intern the tuple before reading