I have following sveral arrays which each of them consists into a String.
x = ["t", "o", "d", "a", "y"]
y = ["i", "s"]
z = ["s", "u", "n", "d", "a", "y"]
my output should be like following:
x = [today]
y = [is]
Z = [sunday]
in together: today is sunday
How can i get expected array using ruby?
todayin[today]– a string? Then it should be["today"].