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.
This appears to only be an issue with the sample tests (the full tests have
gen15 = choose (0, 15)
). My recently published fork fixes this in the sample tests.I think
++
is killing you ( it'sO(n²)
if recursed into left-associatively ).Could you express the result sequence entirely and directly in terms of itself only, like
fibonacci = 0 : 1 : zipWith (+) fibonacci (tail fibonacci)
?yes, I agree. It felt weird to use
id
to make things work. Somehow I didn't think of($)
. Thank you for your feedback!Fork
Of course I tried to do everything .. :O
I'll make a fork of your tests and refactor some. I think readability can be improved somewhat ( though some of it will - again - be just because I'm more used to seeing it how I'll be writing it. there are some de facto standards for testing on CW ). Not now, but soon.
I like that you have an
instance Show $FUNCTIONS
a lot!I will add some, thanks! :)
How about tests with
Bool
eans?Thanks!