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.
They are the arguments of the function, like in any other program (python
def f(xs):
). But sometimes it is possible to not write them, like here, if we can write the code in pure terms of functions combinations. It's hard to explain clearly (and I'm far from being comfortable in Haskell) but try to practice on easy katas and look at others solutions, try to reuse them... With Haskell installed on your computer you can run a very handy interpreter that allows to do tiny tests easily.can someone explain this. Very new to haskell.
I am wondering why "xs" or any form of agruement is being used before the equal sign?
so cool!
Really cool approach. It's these kinds of code that made me learn haskell at first. Doing simple things the simple way
No, siempre hay una forma mas redusida jajaj
I think you missed a few imports.
Is there any guarantee that the compiler won't build up a list of all the populations up to p in memory?
Yeah! I was wondering if this could be done without having to destructure the pair... learning so much from everyone here :)
This comment is hidden because it contains spoiler information about the solution
so Good!!!!!
very interesting, clean :)