Toggle navigation
Hot Examples
KO
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
검색
홈
Widmogrod
Monad
State
PHP 클래스 Widmogrod\Monad\State
상속:
implements
Widmogrod\FantasyLand\Monad
,
use trait
Widmogrod\Common\PointedTrait
파일 보기
프로젝트 열기: widmogrod/php-functional
1 사용 예제들
공개 메소드들
메소드
설명
__construct
(
callable
$continuation
)
ap
(
Widmogrod\FantasyLand\Apply
$b
)
bind
(
callable
$function
)
map
(
callable
$function
)
runState
(
mixed
$initialState
) :
array
runState :: s -> (a, s)
메소드 상세
__construct()
공개
메소드
public
__construct
(
callable
$continuation
)
$continuation
callable
ap()
공개
메소드
public
ap
(
Widmogrod\FantasyLand\Apply
$b
)
$b
Widmogrod\FantasyLand\Apply
bind()
공개
메소드
public
bind
(
callable
$function
)
$function
callable
map()
공개
메소드
public
map
(
callable
$function
)
$function
callable
runState()
공개
메소드
Run computation on a monad with initial state
public
runState
(
mixed
$initialState
) :
array
$initialState
mixed
리턴
array