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.
In reply to Re^3: A "Fun"ctional Attempt
by Laurent_R
in thread A "Fun"ctional Attempt
by withering
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |