# New Ticket Created by "brian d foy"
# Please include the string: [perl #131114]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org/Ticket/Display.html?id=131114 >
# using Rakudo 2017.01
Should junctions only care about unique values?
For example, does 3 need to be in the junction twice?
> my $j = any( 1, 2, 3, 3 )
any(1, 2, 3, 3)
I ran into this when I was playing around with something like
this where I ended up with a junction has the same value repeated:
> $j > 5
any(False, False, False, False)
Curiously, I expected the result would be either True or False
rather than another junction.
Consider how this propagates:
> $j > any( 5, 2 )
any(any(False, False), any(False, False), any(False, True),
any(False, True))
As a boolean value, this is merely a baroque True. Since junctions
are not introspective, it doesn't need to remember how it got there.