PHP Class Widmogrod\Monad\Maybe\Nothing

Inheritance: implements Widmogrod\Monad\Maybe\Maybe
Afficher le fichier Open project: widmogrod/php-functional Class Usage Examples

Méthodes publiques

Méthode Description
ap ( Widmogrod\FantasyLand\Apply $applicative )
bind ( callable $transformation )
extract ( )
map ( callable $transformation )
of ( $value )
orElse ( callable $fn )

Method Details

ap() public méthode

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

bind() public méthode

public bind ( callable $transformation )
$transformation callable

extract() public méthode

public extract ( )

map() public méthode

public map ( callable $transformation )
$transformation callable

of() public static méthode

public static of ( $value )

orElse() public méthode

public orElse ( callable $fn )
$fn callable