PHP 클래스 Widmogrod\Monad\IO

상속: implements Widmogrod\FantasyLand\Monad, implements Widmogrod\FantasyLand\Foldable, use trait Widmogrod\Common\PointedTrait
파일 보기 프로젝트 열기: widmogrod/php-functional 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( callable $unsafe )
ap ( Widmogrod\FantasyLand\Apply $b )
bind ( callable $function ) bind :: IO a -> (a -> IO b) -> IO b
map ( callable $function )
reduce ( callable $function, $accumulator )
run ( ) : mixed Perform unsafe operation

메소드 상세

__construct() 공개 메소드

public __construct ( callable $unsafe )
$unsafe callable

ap() 공개 메소드

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

bind() 공개 메소드

bind :: IO a -> (a -> IO b) -> IO b
public bind ( callable $function )
$function callable

map() 공개 메소드

public map ( callable $function )
$function callable

reduce() 공개 메소드

public reduce ( callable $function, $accumulator )
$function callable

run() 공개 메소드

Perform unsafe operation
public run ( ) : mixed
리턴 mixed