Skip to content

Instantly share code, notes, and snippets.

@localchart
Forked from johnwalker/handler.clj
Created January 17, 2014 06:47
Show Gist options
  • Save localchart/8469419 to your computer and use it in GitHub Desktop.
Save localchart/8469419 to your computer and use it in GitHub Desktop.
(ns nested-vector-ops)
(def nested-vector [[:salt 0 5 :deviation 5 10]
[:milk 5 4 :deviation 1 2]
[:cream 0 0 :deviation 0 0]])
(->>
nested-vector
(remove (fn [[_ _ _ _ a]] (= "N/A" a)))
(sort-by (fn [[_ _ _ _ a]] a))
(reverse))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment