PHP Class Widmogrod\Monad\Maybe\Just

Inheritance: implements Widmogrod\Monad\Maybe\Maybe, use trait Widmogrod\Common\PointedTrait
Datei anzeigen Open project: widmogrod/php-functional Class Usage Examples

Public Methods

Method Description
ap ( Widmogrod\FantasyLand\Apply $applicative )
bind ( callable $transformation )
extract ( )
map ( callable $transformation )
orElse ( callable $fn )

Method Details

ap() public method

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

bind() public method

public bind ( callable $transformation )
$transformation callable

extract() public method

public extract ( )

map() public method

public map ( callable $transformation )
$transformation callable

orElse() public method

public orElse ( callable $fn )
$fn callable