R
Ralph Shnelvar
These are general questions about Ruby and not specific to uniq.
(1) How can I tell if a method like uniq is "native" to Ruby. That is, it's not been added as a C extension and/or is not a Ruby method.
(2) A C++ program is producing YAML from a ragged array. As I go through each row of the ragged array in the C++ program, I could detect if all items are unique ... or I can do this in Ruby. I'd prefer to do this in Ruby if the cost is not "too high".
(3) Is there an easy way to find out how uniq is implemented in 1.8 and 1.9?
(1) How can I tell if a method like uniq is "native" to Ruby. That is, it's not been added as a C extension and/or is not a Ruby method.
(2) A C++ program is producing YAML from a ragged array. As I go through each row of the ragged array in the C++ program, I could detect if all items are unique ... or I can do this in Ruby. I'd prefer to do this in Ruby if the cost is not "too high".
(3) Is there an easy way to find out how uniq is implemented in 1.8 and 1.9?