Skip to content

Instantly share code, notes, and snippets.

@nathanmarz
Created November 22, 2015 17:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathanmarz/a9d570afabd3666a4c71 to your computer and use it in GitHub Desktop.
Save nathanmarz/a9d570afabd3666a4c71 to your computer and use it in GitHub Desktop.
(def MOVIES
[{:name "Lethal Weapon", :director "Paul Verhoeven", :rating 7.6}
{:name "RoboCop", :director "George P. Cosmatos", :rating 7.5}
{:name "Bad Movie", :director "James Cameron", :rating 4.2}
{:name "Great Movie", :director "James Cameron", :rating 10.0}
{:name "Lethal Weapon 3", :director "Ted Kotcheff", :rating 6.6}
{:name "Rambo III", :director "John McTiernan", :rating 5.4}
{:name "The Terminator", :director "Peter MacDonald", :rating 8.1}
{:name "Titanic", :director "James Cameron", :rating 8.3}
])
(select [ALL
(selected? :director #(= "James Cameron" %))
(selected? :rating #(> % 8.0))]
MOVIES)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment