Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Perl 6 implementation of the following Perl 5 codeby moritz (Cardinal) |
on May 27, 2013 at 11:13 UTC ( [id://1035391]=note: print w/replies, xml ) | Need Help?? |
A solution similar to yours in style:
And a version using feeds (note that feeds support in Rakudo is still somewhat lacking and experimental, but this one works:)
And here is another solution:
(Which admittedly doesn't do the Schwartz Transform). (Update: added second version, tested and fixed third version)
In Section
Seekers of Perl Wisdom
|
|