PHP Interface Widmogrod\FantasyLand\Traversable

Inheritance: extends Widmogrod\FantasyLand\Functor
Mostra file Open project: widmogrod/php-functional Interface Usage Examples

Public Methods

Method Description
traverse ( callable $transformation ) : Applicative traverse :: Applicative f => (a -> f b) -> f (t b)

Method Details

traverse() public method

Where the a is value inside of container.
public traverse ( callable $transformation ) : Applicative
$transformation callable (a -> f b)
return Applicative f (t b)