Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
long one-liner which is not that easy to read. this good too
not?
Yesn't,
Char
is an instance ofOrd
where the characters are ordered by their unicode codepoint. It does not really "threat them as they were numbers" but deep down at some point everything is an int eventually.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
wait, Haskell treats chars the same way as if they were numbers? like, he automatically converts char to number like ord() in python?
so you just wrote Elixir code in Haskell
I didnt even know than Haskell has this operator. " . " breaks my brain when i read
'A'.ord has a value of 65 and if you subtract 64 it will be 1
This comment is hidden because it contains spoiler information about the solution