Last active
December 29, 2015 02:29
-
-
Save himerzi/7600493 to your computer and use it in GitHub Desktop.
ef apply v2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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