From 3 minutes playing, junctions are cool...<p><pre><code>    #!&#x2F;usr&#x2F;bin&#x2F;env perl6

    if 3|4|5 == 5|6 {
        print &quot;Junction found\n&quot;
    } else {
        print &quot;No junction\n&quot;
    }
</code></pre>
...or using arrays this seems to be the way to do it...<p><pre><code>    #!&#x2F;usr&#x2F;bin&#x2F;env perl6
    my @first = &lt;3 4 5&gt;;
    my @second = &lt;5 6&gt;;

    if any(@first) == any(@second) {
        print &quot;Junction found\n&quot;
    } else {
        print &quot;No junction\n&quot;
    }</code></pre>