That's excellent, thanks
Moritz!
I'd seen something recently about how
for can work on pairs, but seeing it used to solve a problem I'm working on makes it much clearer.
The final classify example has me really puzzled. I can't see the array creation, nor see what the test does.
In my current program, the $in arrayref is defined by
doing a file, so I suppose I would have the option in perl 6 of
doing that file as perl6, and getting pairs.
BTW, what do you mean by "diplomatic perl 6" ? Is that something like "perl 6, no matter who you ask", because different people have different ideas what's going to be in it?