PHP Class Widmogrod\Monad\Either\Left

Inheritance: implements Widmogrod\Monad\Either\Either, use trait Widmogrod\Common\PointedTrait, use trait Widmogrod\Common\ValueOfTrait
Show file Open project: widmogrod/php-functional Class Usage Examples

Public Methods

Method Description
ap ( Widmogrod\FantasyLand\Apply $b )
bind ( callable $transformation )
either ( callable $left, callable $right )
map ( callable $transformation )

Method Details

ap() public method

public ap ( Widmogrod\FantasyLand\Apply $b )
$b Widmogrod\FantasyLand\Apply

bind() public method

public bind ( callable $transformation )
$transformation callable

either() public method

public either ( callable $left, callable $right )
$left callable
$right callable

map() public method

public map ( callable $transformation )
$transformation callable