PHP Class Widmogrod\Monad\IO

Inheritance: implements Widmogrod\FantasyLand\Monad, implements Widmogrod\FantasyLand\Foldable, use trait Widmogrod\Common\PointedTrait
Afficher le fichier Open project: widmogrod/php-functional Class Usage Examples

Méthodes publiques

Méthode Description
__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

Method Details

__construct() public méthode

public __construct ( callable $unsafe )
$unsafe callable

ap() public méthode

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

bind() public méthode

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

map() public méthode

public map ( callable $function )
$function callable

reduce() public méthode

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

run() public méthode

Perform unsafe operation
public run ( ) : mixed
Résultat mixed