Toggle navigation
Hot Examples
FR
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Rechercher
Accueil
Widmogrod
Monad
Either
Either
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