Revert "tr: zip had a string as input. call { } zip-as instead."
This reverts commit 3c4d1e41b7
.
db4
parent
9a3a533712
commit
f8ddcfd2d0
|
@ -18,7 +18,7 @@ M: bad-tr summary
|
||||||
[ [ ascii? ] all? ] both? [ bad-tr ] unless ;
|
[ [ ascii? ] all? ] both? [ bad-tr ] unless ;
|
||||||
|
|
||||||
: compute-tr ( quot from to -- mapping )
|
: 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
|
'[ [ _ call( x -- y ) _ at ] keep or ] B{ } map-as ; inline
|
||||||
|
|
||||||
: tr-hints ( word -- )
|
: tr-hints ( word -- )
|
||||||
|
|
Loading…
Reference in New Issue