basics/puts_array.rb

tests/_examples/basics/puts_array.rb in the metorex repository.

letters = ["a", "b"]
nested = [1, [2, 3]]
empty = []
trailing = ["with newline\n"]

puts letters
puts nested
puts empty
puts trailing
puts "plain"
puts 1, letters

Output:

a
b
1
2
3
with newline
plain
1
a
b