-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You want:

~  added_users = NEW - OLD

Regs,
D

graham wrote:
| Quick question - I have 2 arrays, one which holds the list of
people who
| had access to a system when I last checked (OLD), and and another
which
| is the current list of people who should have access (NEW).
|
| Is there some neat syntax in Ruby which would allow me to find the
| people added in NEW who are not in OLD, and then find the people
in OLD
| who have need to be delete as they are not in NEW?
|
| I was going to sort the arrays and iterate through them looking for
| differences, but I suspect there is a really cool Ruby syntax to
achieve
| this.. what is it?
| Thx
| Graham
|
|

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)

iD8DBQFDBg9PwwHFeC88e2IRAlZPAJwIH81kPK/iquo/2w7HYY9CGDvTWACfX7y+
Eu2IMiKYL0qVVT7J2a1C+wY=
=W/to
-----END PGP SIGNATURE-----