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.
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.wait, Haskell treats chars the same way as if they were numbers? like, he automatically converts char to number like ord() in python?
Of course, I was just commenting because for me, as a mathematician, it was on the first glance confusing that this actually works :D
To be fair, the type definition is Int -> Int, not (Num a) => a -> Int, so a Double would never be allowed into the function.
Note that this definition would not work for Double, e.g. 2.25=1.5^2 would be sent to 2^2=4, because 1.5 gets rounded to 2, although 2.25 is closer to 1 than to 4.
It's not about size. In point-free version
cycle "10"
will most likely be evaluated only once (even if you don't really need it in this case)get this error message ... Could not find module ‘HasSubPatternII’
Oh crap,
undefined
does not have:[]
in it ..length
I looked at that and thought "that's not gonna work". But it does.
Is it
reverse
that stumbles over thatundefined
? I'm still not seeing that, if I'm honest.The madlad
How about
?
Infinity
is not100000
.If you can't solve it, just forfeit. I can't actually test with
Infinity
, so please just don't do this.Oh hey.. I forgot that where was an option