On Tue, Jul 28, 2009 at 03:21:38AM +0900, Marcin Grski wrote: > It would be nice to have for example {5, 1, 1, 1} in Set class object. > Is it possible? Which method should I use to add element in that way? Sounds like you want a Bag, not a Set. I don't know of aany implementation but it's probably not hard to create one - all you have to do is keep track of the count of each element. -- Jos Backus jos at catnook.com