Toggle navigation
Hot Examples
RU
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Найти
Главная
Widmogrod
Monad
Either
Either
PHP Интерфейс Widmogrod\Monad\Either\Either
Наследование:
extends
Widmogrod\FantasyLand\Monad
,
extends
Widmogrod\Common\ValueOfInterface
Показать файл
Открыть проект
Примеры использования интерфейса
Открытые методы
Метод
Описание
either
(
callable
$left
,
callable
$right
) :
mixed
Depending on if is Left or is Right then it apply corresponding function
Описание методов
either()
публичный
Метод
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)
Результат
mixed
b