• ###### akar-0commented on "Number of People in the Bus" haskell solution

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.

• ###### enigmatizedcommented on "Number of People in the Bus" haskell solution

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?

• ###### glebeccommented on "The Hunger Games - Zoo Disaster!" haskell solution

Ah this is basically the exact same approach I took, but with much less fanfare and ceremony, which ultimately results in a cleaner presentation anyway. Nice!

so cool!

• ###### Alex616commented on "Number of People in the Bus" haskell solution

Really cool approach. It's these kinds of code that made me learn haskell at first. Doing simple things the simple way

• ###### flexeracommented on "Esolang Interpreters #1 - Introduction to Esolangs and My First Interpreter (MiniStringFuck)" haskell solution

Could do
go (0::Word8)
and eliminate the need for mod

• ###### Rasecdxxcommented on "Number of People in the Bus" haskell solution

No, siempre hay una forma mas redusida jajaj

.

• ###### anter69commented on "Pythagorean Triplets" kata

This comment is hidden because it contains spoiler information about the solution

Let me check

• ###### petrascommented on "Pythagorean Triplets" kata

A Pythagorean triplet is a set of three numbers a, b, and c

should be

A Pythagorean triplet is a set of three (positive) integers a, b, and c

• ###### GiacomoSorbicommented on "Pythagorean Triplets" kata

Crystal and c++ kumited :)

• ###### GiacomoSorbicommented on "Pythagorean Triplets" kata

See error above.

• ###### Ikcelakscreated an issue for "Pythagorean Triplets" kata

I believe that the Haskell translation has errors in the Random Tests:
Falsifiable (after 13 tests):
expected: [52,80,96]
but got: [40,96,104]
54

[52,80,96] is NOT a Pythagorean Triple (52 * 52 + 80 * 80 = 9104 and 96 * 96 = 9216

I verified that my code produces the correct triple of [40,96,104], so it's not simply a case of tests reversing the expected and tested results.