What is the best way to filter nil values from a Clojure map {}?
nil
{}
{ :a :x :b nil :c :z } ;;=> { :a :x, :c :z }
Probably not the best solution, but here's one that uses list comprehension:
(into {} (for [[k v] {:a 1 :b nil :c :z} :when (not (nil? v))] [k v]))