Quote: Original post by Sneftel
I'm pretty comfortable with Haskell...
May I suggest you write the chapter about monads, then? ;)
Quote: Original post by Sneftel
I'm pretty comfortable with Haskell...
Quote: Original post by DevFredQuote: Original post by Sneftel
I'm pretty comfortable with Haskell... I'd be willing to help out in any way I can.
Have you ever written a game in Haskell? Because that's what this workshop should aim for in my opinion :)
second :: [a] -> asecond (_:b:_) = b
myReverse :: [a] -> [a]myReverse l = myReverseHelper [] lmyReverseHelper stack [] = stackmyReverseHelper stack (x:xs) = myReverseHelper (x:stack) xs
:set +s
*Main> myReverse [1..1000]...(1.03 secs, 76339452 bytes)
*Main> myReverse [1..1000]...(0.02 secs, 1681708 bytes)
Quote: Original post by Daerax
Why not use Yet Another Haskell Tutorial. It was the first haskell tutorial that made sense to me.
Quote: Original post by DevFred
The point of the PDF is not to show the best solutions from the start, but to begin with a very simple subset of the language and then show how other language features that are introduced later help to make programs more concise and efficient.
The latest version already includes pattern matching, and I plan to introduce tail recursion in one of the next versions.
Once again, thanks for the time you invested in reviewing my script, I appreciate it.