No, the insert in Set needs one argument: The index, not the value. That distinction is vital when it comes to getting the ADT:s to play nicely together.
I don't think there will be any difficult special cases there; just let the insert lfun take one argument for Sets and two for Maps.
/ Martin Stjernholm, Roxen IS
Previous text:
2002-11-11 12:15: Subject: More about ADTs
Question. Assume there is a insert lfun. But the map insert need two arguments, key and value, but the set only need one argument, value, will this be alot of special case handling?
/ Peta, jo det är jag