Skip to content

Instantly share code, notes, and snippets.

@himerzi
Last active December 29, 2015 02:29
Show Gist options
  • Save himerzi/7600493 to your computer and use it in GitHub Desktop.
Save himerzi/7600493 to your computer and use it in GitHub Desktop.
ef apply v2
(filter #(and (= (:technical-ability %) "high")
(= (% :ambition) "extraordinary"))
[{:student true :ambition "extraordinary" :technical-ability "high"}
{:student true :ambition "average" :technical-ability "minimal"}])
;;;;; OR THIS ;;;;;
(def applicants
[{:student true :ambition "extraordinary" :technical-ability "high"}
{:student true :ambition "average" :technical-ability "minimal"}])
(filter #(and (= (:technical-ability %) "high")
(= (% :ambition) "extraordinary"))
applicants)
;;;; or ;;;;
(def students
[{:ambition "extraordinary" :technical-ability "high"}
{:ambition "average" :technical-ability "minimal"}])
(filter #(and (= (:technical-ability %) "high")
(= (% :ambition) "extraordinary"))
students)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment