Skip to content
loading...

re: Daily Challenge #130 - GCD Sum VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Correct me if I'm wrong, but it doesn't generate all possible solutions. Haskell is lazy, and because the function only returns the head of the li...
 

You might be right, I had forgotten about that tiny detail.

Update: I tried with an infinite sequence to generate the solutions and the program didn't get stuck in an infinite loop, so you are right, only the first element of the sequence is generated.

code of conduct - report abuse