Skip to content

Accept a list of (object) lists #49

Description

@iRon7

See: PowerShell/PowerShell#20126

For objects like: $a = '[[1, 2], [3, 4],[5,6]]' | ConvertFrom-Json
Instead of:

$a = '[[1, 2], [3, 4],[5,6]]' | ConvertFrom-Json
$a[0] | Join $a[1] | Join $a[2] | ForEach-Object { $_ -Join ' : ' }

I would like to iterate through all embedded lists, wishful thinking:

$a = '[[1, 2], [3, 4],[5,6]]' | ConvertFrom-Json
$a | Join -EachList | ForEach-Object { $_ -Join ' : ' }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions