From: Randy Kramer Date: 2005-08-08T02:55:56+09:00 Subject: Re: cartesian product On Sunday 07 August 2005 01:22 pm, Hal Fulton wrote: > Haha... if it's this line you have trouble with > > (c ||= []) << ae, be > > it's not that hard. > > The ||= is a well-known idiom -- same as c = c || [] here. Basically > "assign c this value, unless it is already non-nil." > > So then you have either an existing array or an empty one. > Then you can append (<<) onto it. Hal, Thanks--that line was the most confusing. (Yield I at least have a clue about, though I would need to think about it in this context a little more.) regards, Randy Kramer > > If it's the yield that bothers you, just study a bit more > Ruby. Pascal was wonderful in 1980 -- unless you already knew > something better -- but I'm content to let it go now. ;) > > > Hal