Did you know that you can literally multiply array elements in #Ruby? `[1, 2, 3] * 3 # => [1, 2, 3, 1, 2, 3, 1, 2, 3]` And with a scalar string, it’s a shortcut for `join`: ``` h = { a: 1, b: 2} h.map { |pair| pair * "=" } * ", " # => "a=1, b=2" ```
1 repost4 likes