On Sun, 18 Feb 2007, SunRaySon wrote:

> Thanks for your response. I think now the differences and similarities
> between Set, Hash and Array are clear to me. But with respect to memory
> consumption which one of among the following is better:
>
> s = Set.new([1,2,3])
> h = { 1=>nil, 2=>nil, 3=> nil}

nearly the same - set, in ruby, happens to be built on top of hash.

-a
-- 
we can deny everything, except that we have the possibility of being better.
simply reflect on that.
- the dalai lama