| Store | Cart

iteration form of map

From: Yitzchak Scott-Thoennes <stho...@gmail.com>
Fri, 28 Aug 2015 10:23:57 -0700
The 5.20 pairlist slices make me eager for more good stuff.

I'd really like to see something that allows transforming a list like
map, but working on an iterator instead of a list.  Perhaps something
like:

    iter BLOCK EXPR

equivalent to

    do { my @list; local $_; while(defined($_=EXPR)) { push @list, do
BLOCK } @list }

only using the stack.

(I have no idea what perl6 provides in this area.)

Recent Messages in this Thread
Yitzchak Scott-Thoennes Aug 28, 2015 05:23 pm
Kent Fredric Aug 28, 2015 05:32 pm
David Nicol Aug 28, 2015 05:55 pm
Zefram Aug 28, 2015 05:53 pm
Yitzchak Scott-Thoennes Aug 28, 2015 05:57 pm
Messages in this thread