in reply to Re^2: A "Fun"ctional Attempt
in thread A "Fun"ctional Attempt
But looking at what comprehensions are (I only had a very vague idea), it seems to me that it would be possible to implement them with the gather and take functions of Perl 6. And it should not be too difficult to implement a gather and take functionality in pure Perl 5. I think that Damian has implemented a CPAN module doing that. The only difficulty might be to make that really lazy, but combining an iterator and gather and take might do the trick.
But I'll look further at your modules this week-end (hopefully), this looks interesting.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: A "Fun"ctional Attempt
by withering (Monk) on Jun 05, 2015 at 10:51 UTC |