nishimura/laiz-monad

View on GitHub
src/Laiz/Func/Either/Right.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Laiz\Func\Either;

class Right extends \Laiz\Func\Either
{
    /**
     * @return mixed
     */
    public function either(callable $left, callable $right)
    {
        return $right($this->value);
    }
}