select = [] 0.upto 5 do |value| select << value if (value==2)...(value==2) end p select # [2,3,4,5]
谁能告诉我如何理解这段代码?
ruby syntax
ruby ×1
syntax ×1