Jos Backus wrote: > 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. I've just read that elements in Set must be unique (because of Math). So I'm going to solve my problem using arrays. Thanks for answer. -- Posted via http://www.ruby-forum.com/.