From: "Suraj N. Kurapati" Date: 2006-09-16T06:53:52+09:00 Subject: Re: Merging two anonymous structs -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 MonkeeSage wrote: > def struct_join(main, other) > mems = main.members + other.members > vals = main.values + other.values > Struct.new(nil, *mems).new(*vals) > end I like your variable naming style here. I'd normally write 'members' & 'values', but yours are concise & unambiguous. :-) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFFCyC1mV9O7RYnKMcRAk72AJ4zHVxoQimXdEZQWV4sT2wXGZcy0QCgqvsP KVI2IzLsGLHWN6EQ3B0wSrA= =28Ta -----END PGP SIGNATURE-----