public function scan(callable $accumulator, $seed = null) { return $this->lift(function () use($accumulator, $seed) { return new ScanOperator($accumulator, $seed); }); }