On Sat, 2016-02-13 at 16:05 +0100, A Berger wrote:
> > p *[a, (4 if b == 5), c].compact

To skip the `compact` call, use:

  p a, *(4 if b == 5), c

the unary `*` operator turns non-array values (`4`) into one argument,
`nil` into zero arguments.

Unsubscribe: <mailto:ruby-talk-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>