J
Jason Nordwick
Is there a way to make the lower end or both ends of a range exclusive? I would like (1..5) and (1..5]
-jason
-jason
Jason said:Is there a way to make the lower end or both ends of a range exclusive?
I would like (1..5) and (1..5]
-jason
=> [1, 2, 3, 4](1..5).to_a => [1, 2, 3, 4, 5]
(1...5).to_a
Jason said:Is there a way to make the lower end or both ends of a range exclusive?
I would like (1..5) and (1..5]
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.