Hi
I am looking for a way to transform a list of strings into a list of dicts, where the string is a certain key’s value - without using a loop. So from this:
my_list:
- foo
- bar
- baz
to:
other_list:
- somekey: foo
- somekey: bar
- somekey: baz
It looks too simple but I can’t see how to do this…