]> gitweb.factorcode.org Git - factor.git/commitdiff
Revert "tr: zip had a string as input. call { } zip-as instead."
authorJohn Benediktsson <mrjbq7@gmail.com>
Wed, 12 Nov 2014 01:56:15 +0000 (17:56 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 12 Nov 2014 01:56:15 +0000 (17:56 -0800)
This reverts commit 3c4d1e41b76eafbfa48e272276e8a1216a694647.

basis/tr/tr.factor

index 8a95ea5e53cc9a80e6b5e07b117a3307ee8c9eda..a76bf80dc2df0de4696a9ba7542aecff9ef7221b 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-as
+    [ 128 iota ] 3dip zip
     '[ [ _ call( x -- y ) _ at ] keep or ] B{ } map-as ; inline
 
 : tr-hints ( word -- )