Arc Forum
new
|
comments
|
leaders
|
submit
login
3 points
by
mdemare
6132 days ago |
link
|
parent
Both. They use ranges, with have the inclusive (..) and the exclusive notation:
"ruby"[0 .. -1] #=> "ruby" "ruby"[0 ... -1] #=> "rub"