Skip to content

[RFC] Array Index-Based Splitting Shorthand #4

@isocroft

Description

@isocroft

I think it might be good for simple-lang to copy from Python 2.7+ on array splitting using the index-based shorthand syntax syntax like so:

fage = [ 1, 2, 4 ]

display fage[.0~.1] // [ 1, 2 ]
display fage[.1] // [ 2, 4 ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions