base64: include alphabet-inverse in compilation unit

db4
Doug Coleman 2015-07-15 20:17:52 -07:00
parent 916d8a12d9
commit 3d55e79a2c
1 changed files with 1 additions and 1 deletions

View File

@ -24,12 +24,12 @@ ERROR: malformed-base64 ;
<<
CONSTANT: alphabet
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
>>
: alphabet-inverse ( alphabet -- seq )
dup supremum 1 + f <array> [
'[ swap _ set-nth ] each-index
] keep ;
>>
: ch>base64 ( ch -- ch )
alphabet nth ; inline