PHP Interface Widmogrod\Monad\Either\Either

Inheritance: extends Widmogrod\FantasyLand\Monad, extends Widmogrod\Common\ValueOfInterface
Afficher le fichier Open project: widmogrod/php-functional Interface Usage Examples

Méthodes publiques

Méthode Description
either ( callable $left, callable $right ) : mixed Depending on if is Left or is Right then it apply corresponding function

Method Details

either() public méthode

Depending on if is Left or is Right then it apply corresponding function
public either ( callable $left, callable $right ) : mixed
$left callable (a -> b)
$right callable (c -> b)
Résultat mixed b