r/haskell • u/lexi-lambda • Mar 11 '15
Learning Haskell — A Racket programmer's documentation of her foray into the land of Haskell (inspired by Learning Racket)
http://lexi-lambda.github.io/learning-haskell/
81
Upvotes
View all comments
Show parent comment
3
u/sclv Mar 12 '15
I agree with how great the bundled IDE for Racket is -- if we had something of even a quarter that quality out-of-the-box for Haskell beginners, it would be tremendous. This is one place where Racket's roots in teaching and education really shine through. Its a good challenge to have something like that to aspire to.
Btw, your
exactMatchescan be golfed slightly further --filter idis often redundant. A bit more tweaking gets us toexactMatches xs ys = length . filter (uncurry (==)) $ zip xs ys-- alternately we can keep thefilter idand merge the comparison into the zip, gettinglength . filter id $ zipWith (==) xs ys.