Wow,
If you take out the assignment and wrap it in brackets, I see a solution in 50
characters. Impressive Raul, you should put that up on the contest site.
Previous leader was Golfscript at 53
I'm gonna take a look at how you did it later tonight. The best thing about
these contests with the J language is that it challenges the status quo
approach to the problem.
cheers, bob
On 2012-08-27, at 4:04 PM, 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.'
>
> --
> Raul
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm