What do you want to save?
Add Code snippet
New code examples in category Ruby
-
-
-
-
Krish 2022-01-28 18:07:15
how to add to an array ruby
a = [ "a", "b", "c" ] a.push("d", "e", "f") #=> ["a", "b", "c", "d", "e", "f"] a = [1, 2, 3] a += [4, 5] #=> [1, 2, 3, 4, 5] a ... Add solution