Project

General

Profile

Feature #6445

request for default length/position on string index

Added by botp (bot pena) about 8 years ago. Updated over 2 years ago.

Status:
Assigned
Priority:
Normal
Target version:
-
[ruby-core:45106]

Description

would be nice if ruby has default for "rest or up to end of string"

eg

"hello"[2,] => should default to "hello"[2..-1]
or
"hello"[2..] => should default to "hello"[2..-1]

Also available in: Atom PDF