tr: zip had a string as input. call { } zip-as instead.
parent
45e7fd7921
commit
3c4d1e41b7
|
@ -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
|
[ 128 iota ] 3dip { } zip-as
|
||||||
'[ [ _ 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