3 ms·
Im not a Haskell guy either, but monads are a concept not restricted to Haskell. A trivial example is if you know jQuery - $(".myclass").addClass("myclass2") .
by binarymax 14y ago
Im not a Haskell guy either, but monads are a concept not restricted to Haskell.
A trivial example is if you know jQuery - $(".myclass").addClass("myclass2") ...the selector returns zero or more objects. You dont need to iterate over each and manually add myclass2.
- w_t_payne 14y agoOh. I did not know that. I will have to investigate further. Thank you.
- dbaupp 14y agoNote that jQuery isn't necessarily a monad in the strictest sense (i.e. it's unclear whether it satisfies the laws), but it certainly has many attributes that are similar, and so is a good example nonetheless. Reference: http://stackoverflow.com/questions/10496932/is-jquery-a-monad http://stackoverflow.com/questions/10496932/is-jquery-a-mona...