Skip to content

Enable index operations for ITuple implementations #7632

@SeeminglyScience

Description

@SeeminglyScience

From the discussion in #7471, the following should work

PS> $tuple = [Tuple]::Create(1, 'test')
PS> $tuple[0]
# 1
PS> $tuple[1]
# test
PS> $tuple[0..1]
# 1
# test
PS> $tuple[-1]
# test

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions