Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept a list of (object) lists #49

Open
iRon7 opened this issue Oct 23, 2023 · 0 comments
Open

Accept a list of (object) lists #49

iRon7 opened this issue Oct 23, 2023 · 0 comments

Comments

@iRon7
Copy link
Owner

iRon7 commented Oct 23, 2023

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 ' : ' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant