I'm toying with the idea of trying to implement multiple iterator variables in a foreach loop, a la
. what would be the best way to approach this? At the moment I can only think of source filters, but perlguts makes references to PERL_MAGIC_defelem : vtbl_defelem : Shadow "foreach" iterator variable / smart parameter. So maybe it's possible to use xs for this?
I was also thinking about pythonic slices, e.g.