in reply to Re^5: Efficient but elegant Cross-Product iterator ? (updated)
in thread Efficient but elegant Cross-Product iterator ?
Thanks, I definitely will (and had)
HOP's way to recombine iterators is from a logical perspective unrivaled.
Unfortunately are function calls very expensive in Perl compared to pure functional languages where call optimization kicks in.
This can make chained iterators extremely slow ...
Apart from this - sorry to say so - do I hate using scalar iterators with undef as termination signal.
That's a semipredicate footgun.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|