-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Enable index operations for ITuple implementations #7632
Copy link
Copy link
Closed
Labels
Issue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.The issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime
Description
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]
# testReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Issue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.The issue is fixed.WG-Enginecore PowerShell engine, interpreter, and runtimecore PowerShell engine, interpreter, and runtime