Replies: 1 comment 4 replies
-
Hi @crissi, You can actually start a LazyCollection::make(function () {
$number = 1;
while (true) {
yield $number++;
}
}); |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I know we do not allow generators as direct input to lazyCollection. Is the same problem with iterators?
It seems that the whole iterator is converted to an array when you use new LazyCollection.
Could we not allow iterators as input without converting it to an array?
Beta Was this translation helpful? Give feedback.
All reactions