On Mon, Apr 14, 2008 at 12:05:15PM +0200, TSa wrote: > But X is cooperating with , in Perl 6: > > (0,1) X (()) === ((0,()),(1,())) === (0,1) > > That is, X strips the outer list and comma concatenates the > inner empty list away.
No, the inner () is also in list context, and () in list context always just disappears. And 0,1 X () is going to be (). Perl 6's infix:<X> is defined over lists, not sets. If you want to overload X for set types, you may. Larry