bind

Wraps a value as an Either monad

Examples

returns a right hand Either when the value is an int

auto result = bind(5);

result.isLeft.should.equal(false);
result.isRight.should.equal(true);

Meta