in reply to Re^4: Efficient but elegant Cross-Product iterator ?
in thread Efficient but elegant Cross-Product iterator ?

Ah, so it will create the arrays for you, cool. (Added the alternate solution to my earlier post.)

  • Comment on Re^5: Efficient but elegant Cross-Product iterator ?

Replies are listed 'Best First'.
Re^6: Efficient but elegant Cross-Product iterator ?
by LanX (Saint) on Jun 20, 2020 at 22:12 UTC
    It's also semantically different!

    The subs don't need to return a constant list, so each loop might restart with a new dynamic list.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery