Skip to content

Suggestion: add list construction using range not including final #13334

@qiru

Description

@qiru

Please add another way of creating a list which doesn't include final number (like ... in Ruby)

like this:

def l1 = $[0 .. 3]; // an existing way
// [0, 1, 2, 3]
def l2 = $[0 ... 3] // another way
// [0, 1, 2]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions