# New Ticket Created by
# Please include the string: [perl #127601]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=127601 >
Current format for a lazily evaluated list:
my $lazylist = (0, { $_ + 3 } ...^ * > 10);
^*> is incoherent line noise.
Please consider making a builtin function that looks kind of like a "for loop"
but is lazily evaluated.
my $lazylist = lazy ($_=0; $_ <= 10; $_+=3);
The syntax for a FOR() loop is well established and already has everything
needed to define a lazy list.
(start condition; end condition; increment condition)
Keep the line noise version if you want, but a lazy() function would be much
more natural and intuitive for oddball situations and would need almost zero
explanation.