set->bag! ambiguity Aubrey Jaffer (16 Aug 2014 00:57 UTC)
Re: set->bag! ambiguity John Cowan (16 Aug 2014 06:28 UTC)

Re: set->bag! ambiguity John Cowan 16 Aug 2014 06:28 UTC

Aubrey Jaffer scripsit:

> But SET->BAG! has two arguments; which comparator is used?

I've changed the text to say the comparators must be the same, which
was my intention, and fixed the code to verify it.  Note that the
"Specification" section says "It is an error for any procedure defined
in this SRFI to be invoked on sets or bags with distinct comparators
(in the sense of eq?)."

The new text and code are in the same place.

--
John Cowan          http://www.ccil.org/~cowan        xxxxxx@ccil.org
One art / There is / No less / No more
To do / All things / With sparks / Galore   --Douglas Hofstadter