2 ms·
Ruby unfortunately has non-strict destructuring, but it also has LHS splatting: a, *, c = list And people often use _ as a placeholder when not using splattin
by adgar 15y ago
Ruby unfortunately has non-strict destructuring, but it also has LHS splatting:
a, *, c = list
And people often use _ as a placeholder when not using splatting:
a, _, _, c, d = list