in reply to Re: Re: Returning a Junction
in thread Returning a Junction

I don't know a lot about junctions, but it seems to me in order for a string to ever pass an all_junction compare there could only be one key in the junction. i.e. "Visa" only matches "Visa" in a string compare, if there is anything else the compare will fail. An all junction I would think would only work if you were comparing two junctions.

Replies are listed 'Best First'.
Re4: Returning a Junction
by dragonchild (Archbishop) on Sep 04, 2003 at 19:53 UTC
    And, in fact, it is the logical default for comparing junctions. It's basic set theory. Two sets are equivalent if they contain the same elements. What junctions do need is to see if one junction is a subset of another junction. This is equivalent to asking if every $foo in junction $bar is within the other junction $baz.

    ------
    We are the carpenters and bricklayers of the Information Age.

    The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6

    Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.