methods/each/only.rb
tests/_examples/methods/each/only.rb in the metorex repository.
def test
list = []
[1].each do |x|
list += [x]
end
list
end
out = test()
puts out.length
tests/_examples/methods/each/only.rb in the metorex repository.
def test
list = []
[1].each do |x|
list += [x]
end
list
end
out = test()
puts out.length