J
Just Another Victim of the Ambient Morality
Hey, is there a Set object, like an Array or Hash object, in Ruby?
So far, I've been using the Hash object and mapped the key to true.
Then, I use the .include? method to determine if my "set" has the object,
already. However, while reading a tutorial on Python, I noticed that it has
a Set data type, which made me wonder if Ruby has one as well and, if not,
why not?
Thanks...
So far, I've been using the Hash object and mapped the key to true.
Then, I use the .include? method to determine if my "set" has the object,
already. However, while reading a tutorial on Python, I noticed that it has
a Set data type, which made me wonder if Ruby has one as well and, if not,
why not?
Thanks...