Skip to content

Commit 85f14c6

Browse files
committed
simplify user land source
1 parent b71a0c6 commit 85f14c6

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

‎src/Sequence/Lazy/UserLand.php‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,6 @@ public function __construct(
2323
#[\Override]
2424
public function __invoke(RegisterCleanup $register): \Generator
2525
{
26-
$iterator = ($this->values)($register);
27-
$iterator->rewind();
28-
29-
while ($iterator->valid()) {
30-
/** @var T */
31-
$value = $iterator->current();
32-
yield $value;
33-
$iterator->next();
34-
}
26+
return ($this->values)($register);
3527
}
3628
}

0 commit comments

Comments
 (0)