Arc Forumnew | comments | leaders | submitlogin
3 points by mdemare 6139 days ago | link | parent

Both. They use ranges, with have the inclusive (..) and the exclusive notation:

    "ruby"[0 .. -1] #=> "ruby"
    "ruby"[0 ... -1] #=> "rub"