[Haskell-cafe] Re: Solution to Thompson's Exercise 4.4
Kaoru Hosokawa
khosokawa at gmail.com
Sat Mar 12 20:47:25 EST 2005
Thanks to all the replies!
It seems that there are ways to solve the exercise if I use constructs
that are found in later chapters of the book. Sean could be right in
that some of the exercises are meant to be difficult to solve and they
prepare you for later chapters.
Tried Gour's suggestion, but didn't work for
howManyOfFourEqual 4 4 2 2 = 3
Anyway the approach was similar to mine, and if I use isEqual I could
get a simpler solution.
Thanks again.
--
Kaoru Hosokawa
khosokawa at gmail.com
More information about the Haskell-Cafe
mailing list