I want to override “d” with list w
I know this doesn’t work as it copies the entire w into each data enum
There is that trick of recursion that I can’t fully understand yet
t = Enum.map(&Map.delete(&1, "d"))|> Enum.map(&Map.put(&1, "d", w ))
how to make into
data = [
%{
"a" => ["x", "y", "z"],
"b" => 11,
"c" => 100,
"d" => u,
"e" => true
},
%{
"a" => ["w"],
"b" => 3,
"c" => 200,
"d" => v
"e" => true
}
]
Hey @EduardoC as a minor note, please use good forum etiquette and put code blocks around your code so that your posts are easier to read and don’t have to be edited by the mods.