by vlaaad · 8y ago · 0 comments
(->> justice-league
(map #(:vehicles %))
(filter #(not (nil? %)))
(flatten))
can be simplified to just `(mapcat :vehicles justice-league)`- Keywords (i.e. `:vehicles`) can be used as getter functions, as covered in the OP.
- mapcat (like most collection functions in clojure) treats `nil` as an empty sequence