Comparing array of structs, and removing duplicate
Posted
by keruilin
on Stack Overflow
See other posts from Stack Overflow
or by keruilin
Published on 2010-05-18T00:20:07Z
Indexed on
2010/05/18
0:31 UTC
Read the original article
Hit count: 352
I have two arrays of structs.
array_of_structs1
array_of_structs2
The struct class looks like this, for contextual info:
class Leader < Struct.new(:rank, :user); end
I want to remove the duplicate users from array_of_structs1.
Any assistance would be greatly appreciated!
© Stack Overflow or respective owner