News for hackers. Stuff that matters.
Re:Ruby One-Liners by pizza234 on Saturday September 14, 2019 @03:28AM (#20969433)
There are other significant other functionalities that I find very handy in oneliners, notably:

- automatic associative array instantiation

- the return value of regular expressions with a capture group is the value matched by it (in Ruby, the closest to this is `[/regex/, <group_i>]`)

There are no comments on this comment yet.