PHP 클래스 Widmogrod\Helpful\FunctorLaws

파일 보기 프로젝트 열기: widmogrod/php-functional 1 사용 예제들

공개 메소드들

메소드 설명
test ( callable $assertEqual, callable $f, callable $g, Widmogrod\FantasyLand\Functor $x ) Generic test to verify if a type obey the functor laws.

메소드 상세

test() 공개 정적인 메소드

Generic test to verify if a type obey the functor laws.
public static test ( callable $assertEqual, callable $f, callable $g, Widmogrod\FantasyLand\Functor $x )
$assertEqual callable Asserting function (Functor $f1, Functor $f2, $message)
$f callable (a -> b)
$g callable (a -> b)
$x Widmogrod\FantasyLand\Functor f a