M
Milo Thurston
If one has an array of objects, each containing various values, what
means are there to find all the objects where one of these particular
values is unique?
I have done this using a hash to record values I've seen before (code
attached), but wondered if there might be another way, e.g. using
collect.
Attachments:
http://www.ruby-forum.com/attachment/76/modeltest.rb
means are there to find all the objects where one of these particular
values is unique?
I have done this using a hash to record values I've seen before (code
attached), but wondered if there might be another way, e.g. using
collect.
Attachments:
http://www.ruby-forum.com/attachment/76/modeltest.rb