I’ve started working through Yet Another Haskell Tutorial to teach myself some haskell. I’m not too far into it, but it’s making sense so far—none of the mind-bending strangeness that I keep hearing about. Nothing that makes me want to give up Ruby either.
Here’s my version of a recursive multiplication by addition function from one of the exercises:
mult a 1 = a
mult a n = a + mult a (n -1)
See more progress on: learn haskell
No comments:
Post a Comment