Hi,

Is was wondering if there's a Ruby idiom for adding variables that should be arrays but that may be nil, for example:

[1] + (a || [ ]) + (b || [ ]) + (c || [ ])

but that's a bit ugly IMO. I've had a look, but didn't see anything. I know I could use a fold or something similar, but I was wondering if there was something in the realms of ||= (i.e. nice, idiomatic shortcut) for this kind of thing?