3 ms·
I'd do the ruby version as: splits.flat_map do |(a, b)| alphabet.map{|c| a + b + c} end Which feels pretty close to the list comprehension to my
by akavi 11y ago
I'd do the ruby version as:
splits.flat_map do |(a, b)|
alphabet.map{|c| a + b + c}
end
Which feels pretty close to the list comprehension to my eyes.