We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would be useful to be able to do something like dict comprehensions in python, eg: for key, value in obj
for key, value in obj
A use-case would be when defining environment variables for a kubernetes container like so:
{ env:: { FOO: 'foo', BAR: 'bar', BAZ: 'baz' }, containerEnv: [{name: k, value: v} for k, v in $.env] }
->
{"containerEnv": [ {"name": "FOO", "value": "foo"}, {"name": "BAR", "value": "bar"}, {"name": "BAZ", "value": "baz"} ]}
The text was updated successfully, but these errors were encountered:
You can do this currently with std.objectFields/std.objectFieldsAll. See also: #543.
std.objectFields
std.objectFieldsAll
Maybe we could add a shorthand syntax for that like in your example.
Sorry, something went wrong.
No branches or pull requests
It would be useful to be able to do something like dict comprehensions in python, eg:
for key, value in obj
A use-case would be when defining environment variables for a kubernetes container like so:
->
The text was updated successfully, but these errors were encountered: