Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread Viktor Cerovski
Raul Miller wrote: > Borrowing some ideas from other people in this thread: > >f=:[:|:((i.|.-.)~(a.{~65 97+/i.26)&(*@#.@e.,@#[))"0 > > Example uses: > f 'a' > f '-' > f 'C.' > Here is a 4 characters shorter version: ([:|:(25{.(a.{~,2#65 97+/i.26)(>:@i.}.[){.)"0) #'([:|:((i.|

Re: [Jprogramming] Print Custom Alphabet

2012-08-28 Thread Viktor Cerovski
Bob Therriault wrote: > Thanks Ric, > > I guess that why the specs were written, huh? > > New version back up to 63 characters. > > (a.{~,(('.'e.t){32 10)(,"0)2#65 97+/i.26)&(50{.[}.~2+[i.0{])t=. 'k' > l m n o p q r s t u v w x y z a b c d e f g h i j > [...] > A straightforward patch

Re: [Jprogramming] Print Custom Alphabet

2012-08-27 Thread Viktor Cerovski
Bob proposed: (,.@]^:('.'e.[)(a.{~,2#65 97+/i.26)&(25{.[}.~1+[i.0{])) Three characters shorter version: (,.@]^:('.'e.[)25{.(a.{~,2#65 97+/i.26)(>:@i.}.[){.) -- View this message in context: http://old.nabble.com/Re%3A-Print-Custom-Alphabet-tp34348204s24193p34348204.html Sent from the J P

Re: [Jprogramming] Print Custom Alphabet

2012-08-25 Thread Viktor Cerovski
bob therriault-2 wrote: > > Actual 66 character version after eliminating unnecessary conversions from > a. and back > > (,.@]^:('.'e.[)(a{~(>:i.25)+(a=.a.{~,65 97+/26|i.51)i.{.)) ::(0$]) 'e.' > > Surprisingly, removing assignments makes it one character longer > > (,.@]^:('.'e.[)(a.{~,65 97+