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.
there is 103 between these numbers
The primes need to be consecutive. I also fell for this trap 😝
Read the description again, that exact case is explained there, in the examples.
HASKELL--
On the test I get an error for
g=6, m=100, n=110
I return Just(101, 107), but I get an error saying "expected Nothing"
Am I wrong to think that 101 and 107 are primes and that they are different by 6?
I also fail the test of g=10, m=300, n=400
I returned Just (307,317), but "Expected Just (337,347)"
Why does this seem wrong to me?
I am wrong please let me know
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?