monads icon indicating copy to clipboard operation
monads copied to clipboard

Simple Ruby implementations of some common monads.

Results 4 monads issues
Sort by recently updated
recently updated
newest added

Trying to fix this issue: https://github.com/tomstuart/monads/issues/8 The problem was that flat_map didn't actually necessarily return a flat array, just tore down one layer of array returned by the block, leaving...

First of all, thanks for your talk about Ruby monads, it blew my mind ^^ I've been trying to imitate your logic as a TDD exercise, and was comparing what...

I was experimenting the use of `Monads::Optional` with chains of calls that imply hash access, such as when dealing with Rails parameters: ``` ruby params[:profile][:resume].tempfile.path ``` Initially I thought that...