r/programmingchallenges • u/okmkz • Sep 10 '11
Challenge: Hello, world!
I'm kind of interested in running xmonad and learning Haskell. Should we all tackle learning about a new programming paradigm?
12
Upvotes
View all comments
Show parent comment
1
u/HigherFive Sep 10 '11
Ooh! It took me a while to figure out, but this is required because gcd takes two arguments, right?
I was stuck on thinking of gcd's domain as a pair instead of a number (and its range a function itself).
Still this is pretty unintuitive. I should code some Haskell whenever I have free time.