+ 3
Ruby - What does this code do, step by step?
col = %w(colours gray green blue) num = %w(numbers four five nine) a = [col,num] puts a.assoc("numbers")[1]
1 Antwort
+ 6
You will understand, after reading the function of assoc.
https://www.geeksforgeeks.org/ruby-assoc-function/