Project

General

Profile

Actions

Feature #4414

closed

Addition to String.split

Added by lorensr (Loren Sands-Ramshaw) over 14 years ago. Updated about 13 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
[ruby-core:35322]

Description

=begin
I'm wondering whether the following feature is acceptable before I work on a patch:

When String.split is given one or more integer arguments, the string is divided at those indices.

str = '1.9ruby30932'
version, language, revision = str.split(3, 7)

Thanks,
Loren
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0