background preloader

Functional Programming

Facebook Twitter

The If Works - Translation from Haskell to JavaScript of selected portions of the best introduction to monads I’ve ever read. (With apologies to John Gruber and A Neighborhood of Infinity.) I know, I know, the world does not need yet another introduction to monads (or yet another article complaining that world does not need yet another introduction to monads). So you’ll be glad to know this isn’t one of those, in the sense that it’s not new. I thought I’d write it because, first, monads are worth knowing about, and second, because I want to get into how they relate to asynchronous programming and I want a baseline in JavaScript to help explain things I might write later. DeveloperWorks : Java Technology : Technical library. Commons Functor - Overview.