--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/53363f10-a1b7-4dbc-bf12-5a24107f9c40%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
:maps.filter(fn {_key, val} -> not is_empty(val) end, my_map)
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAHi9bZpVvyN07u765p4rv2VYVabfcWMAfsV-v2m-YwtezTb-zw%40mail.gmail.com.
Thanks! This worked for me::maps.filter(fn(_k, v} -> not is_empty(v) end, map)Is it correct to assume that this should be faster, since we're using a native Erlang function?
This actually revisits an oldie but goodie. Enum.traverse/2
This still sort of exists with Enum.into/3, I can't quite remember why it was removed, but it used to exist way back in the day. Jose, do you mind jogging my memory on this one?
Enum.traverse_filter or something of the sort would solve this use case in a more general way.
--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/78a28e31-d6aa-41d0-8f3f-0fbeec454f22%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "elixir-lang-core" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/elixir-lang-core/QVvRVGjLe6w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to elixir-lang-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/7f9d14a2-e9a7-4d84-9e71-8aeeafe3581a%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAA%3DysnsvbiS32afHoiHOVs8kfLpVyPQJNgVuUspQ8XgDmbWnyg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAP%3DvNq_JcTO5-CnMAshEpq85irq1AmOZzu4HQ%2BGv5jzH0gYPOQ%40mail.gmail.com.