I have a map (errors of Ecto.Changeset) like that:
%{ field_a: ["error 1", "error 2"], field_b: ["something here"] } I want it to be a
[ "field_a error 1", "field_a error 2", "field_b something here" ] I tried to implement it with
Enum.map(map, fn({ key, errors }) -> # another anonymous function which generates strings end) but got a compilation error since elixir doesn't support nested anonymous functions right now.
How can I implement this convertation?