Re: multiset ordering



Could you please write this line?...

Sorry, I may not have been specific enough in my previous reply. This
was the line:

| multiSet |

multiSet := Bag new.

Well, perhaps it's two lines. The first line is the declaration of a
temporary variable. The second line assigns a new Bag to the
temporary variable. The Bag type seems to correspond to his
definition of a multiset. It allows duplicates. It is implemented
internally as a hash. There are also Sets available, Dictionaries,
Linked Lists, Arrays - whatever you want. And all the functions
necessary to manipulate them. Why doesn't every language have such
tools available?

.



Relevant Pages

  • multiset ordering
    ... I'm trying to extend the usual strict order on natural numbers ... to multiset (or bag) of numbers (special sets where duplicates are ... % X replacing a single element with a finite collection ...
    (comp.lang.prolog)
  • Re: TreeSet and HashSet
    ... For a multiset (bag, or whatever you call it) the question would be "which ... I don't think that has any more similarity to a mapping operation than asking ... have to leave a few classes for programmers to write or we'd be out of jobs. ...
    (comp.lang.java.programmer)
  • Re: multiset ordering
    ... This is a Prolog group so I hesitate to put much Smalltalk ... He said a "multiset" was a ... to multiset (or bag) of numbers (special sets where duplicates are ...
    (comp.lang.prolog)
  • Re: Why do I get an exception?
    ... There are many kinds of collection objects in Smalltalk. ... Arrays are the most like arrays of other languages. ... like Bag can grow as needed and under the covers may take more space than the ...
    (comp.lang.smalltalk)