Re:Ruby 2.6
by akira2501 on Monday December 24, 2018 @03:18PM
(#18754062)
> For example, why do I need the splat on the list?
You don't on the RHS, or rather, it's redundant in the given example. On the LHS you need it to prevent single element capture.. and within the ruby language, it's a fairly consistent sigil.
You don't on the RHS, or rather, it's redundant in the given example. On the LHS you need it to prevent single element capture.. and within the ruby language, it's a fairly consistent sigil.