In Elixir, what would be an efficient way to filter a Map by its values.
Map
Right now I have the following solution
%{foo: \"bar\", biz: ni
In this case comprehension would be a good idea, because it also does not create an intermediate list and returns you a map:
map = %{baz: 4, biz: nil, foo: "bar"} for {key, value} <- map, !is_nil(value), into: %{}, do: {key, value}