From: 7stud -- Date: 2009-07-20T07:34:43+09:00 Subject: Re: removing array duplicates where a subset is unique David A. Black wrote: > Hi -- > > On Mon, 20 Jul 2009, 7stud -- wrote: > >> David A. Black wrote: >>> I'm not sure what that buys you, though. >> >> Simplicity of comprehension over brevity. > > I guess I like the ||= idiom because it has both. For you, yes. But apparently not for the op: >>I was trying to figure out how to use a hash but did not >>make the leap to the ||= construction on my own. > The ||= idiom should work > fine ..until it doesn't (I think you know what I'm refering to). -- Posted via http://www.ruby-forum.com/.