Hi all, I'm a C# guy looking to learn F# and functional programming. I'm hearing a lot about "monads" .. which I think (thanks to Google), are called "Computation Expressions" in F#?
One aspect I'm trying to bend my head round is the State Monad/Computation Expression... But I need an idiot-proof, line-by-line, explanation about what's going on in the code.
I really feel this State issue is going to be my major stumbling block with functional programming... As far as I can understand: Immutability is king, and the state monad is a magical unicorn that gives you stateless-state. Unfortunately it's so arcane I just can't find a simple explanation of it :¬/
I hope some boffins out there can help me grasp the concept or link me to some idiot-proof info on the subject.
Thanks in advance,
JD.