On Sun, Mar 15, 2009 at 07:26:00PM +0100, Jonathan Worthington wrote:
> You can detect junctions by smart-matching against the Junction type  
> (e.g. $sum ~~ Junction).
>
> my @s=1|11,2,3,4,5,6;
> loop {
>    my $sum = [+] @s.pick(3);
>    say $sum ~~ Junction ?? $sum.eigenstates.min !! $sum;
> }

I see no particular reason not to add an .eigenstates method to Object
that returns a list of the object itself .  It doesn't interfere with
the .eigenstates method defined in Junction, unless you want to
determine whether something is a Junction by seeing if it can respond
to .eigenstates, which seems wrongish.

Larry

Reply via email to