Module: RParsec::Monad

Module | RParsec::Monad
In: | rparsec/monad.rb

module for Monad

### Methods

bind initMonad map plus seq value

### Attributes

this | [R] |

### Public Instance methods

bind(&binder)

Run the bind operation on the encapsulated object following the monad law.

initMonad(m, v)

To initialize with a monad implementation and an object that obeys the monad law.

map(&mapper)

Run the map operation on the encapsulated object following the monad law. bind is used to implement.

plus(other)

Run the plus operation on the encapsulated object following the MonadPlus law.

seq(other)

Run the seq operation on the encapsulated object following the monad law. If seq is not defined by the monad impl, use bind to implement.

value(v)

To create a value based on the monad impl.

[Validate]