]> gitweb.factorcode.org Git - factor.git/commitdiff
base64: include alphabet-inverse in compilation unit
authorDoug Coleman <doug.coleman@gmail.com>
Thu, 16 Jul 2015 03:17:52 +0000 (20:17 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Thu, 16 Jul 2015 03:17:52 +0000 (20:17 -0700)
basis/base64/base64.factor

index 140d897cc3104f5beb2c2d01a401ef74da9e3a90..c2efa32c1b331bf6dd7449a15935023f3ce1da45 100644 (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