src/SellerLabs/Nucleus/Control/Monad.php
public function fmap(callable $closure)
    {
        return $this->bind(function ($a) use ($closure) {
            return $this->of($closure($a));
        });
    }
public function fmap(callable $closure)
    {
        return $this->bind(function ($a) use ($closure) {
            return $this->of($closure($a));
        });
    }
public function fmap ( callable $ closure ) { return $ this -> bind ( function ( $ a ) use ( $ closure ) { return $ this -> of ( $ closure ( $ a ) ) ; } ) ; }
Apply a function.

@param callable|Closure $closure

@return MonadInterface
Apply a function .