]> gitweb.factorcode.org Git - factor.git/commitdiff
tr: zip had a string as input. call { } zip-as instead.
authorDoug Coleman <doug.coleman@gmail.com>
Sun, 9 Nov 2014 02:41:51 +0000 (18:41 -0800)
committerDoug Coleman <doug.coleman@gmail.com>
Sun, 9 Nov 2014 02:41:51 +0000 (18:41 -0800)
basis/tr/tr.factor

index a76bf80dc2df0de4696a9ba7542aecff9ef7221b..8a95ea5e53cc9a80e6b5e07b117a3307ee8c9eda 100644 (file)
@@ -18,7 +18,7 @@ M: bad-tr summary
     [ [ ascii? ] all? ] both? [ bad-tr ] unless ;
 
 : compute-tr ( quot from to -- mapping )
-    [ 128 iota ] 3dip zip
+    [ 128 iota ] 3dip { } zip-as
     '[ [ _ call( x -- y ) _ at ] keep or ] B{ } map-as ; inline
 
 : tr-hints ( word -- )