PHP Class Widmogrod\Monad\Maybe\Nothing

Inheritance: implements Widmogrod\Monad\Maybe\Maybe
ファイルを表示 Open project: widmogrod/php-functional Class Usage Examples

Public Methods

Method Description
ap ( Widmogrod\FantasyLand\Apply $applicative )
bind ( callable $transformation )
extract ( )
map ( callable $transformation )
of ( $value )
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

of() public static method

public static of ( $value )

orElse() public method

public orElse ( callable $fn )
$fn callable