Exemplo n.º 1
0
 /**
  * Standard functor mapping, derived from chain.
  * @param callable $f Transformation for the inner value.
  * @return Reader The transformed Reader.
  */
 public function map(callable $f) : Reader
 {
     return $this->chain(function ($a) use($f) {
         return Reader::of($f($a));
     });
 }