PHP 클래스 phpstreams\Functions

저자: Bert Peters ([email protected])
파일 보기 프로젝트 열기: bertptrs/phpstreams 1 사용 예제들

공개 메소드들

메소드 설명
combine ( callable $a, callable $b ) : callable Combine two functions into one.
identity ( ) : callable Get an identity function.

메소드 상세

combine() 공개 정적인 메소드

This method creates a function that effectively is b(a(value)).
public static combine ( callable $a, callable $b ) : callable
$a callable
$b callable
리턴 callable

identity() 공개 정적인 메소드

Get an identity function.
public static identity ( ) : callable
리턴 callable A function that returns its first argument.