Skip to content

Instantly share code, notes, and snippets.

@bsima
Last active January 24, 2017 18:00
Show Gist options
  • Save bsima/2c3e636bb74f88bcbe8b2c6dc22d9220 to your computer and use it in GitHub Desktop.
Save bsima/2c3e636bb74f88bcbe8b2c6dc22d9220 to your computer and use it in GitHub Desktop.

Get started:

  1. Install Leiningen
  2. Run lein new repl-sesh, then cd repl-sesh
  3. Open project.clj and change the clojure version to [org.clojure/clojure "1.9.0-alpha14"]
  4. lein repl and awaaaayy we go!

Resources


example data for repl:

(def db
  [{:name "Ben Sima" :fav {:number 13 :food "tuna melt" :color "green"}}
   {:name "Robert Koh" :fav {:number 7 :food "pizza" :color "blue"}}
   {:name "Vivian Wu" :fav {:number 13 :food "pasta" :color "orange"}}
   {:name "Eric Colvin" :fav {:number 19 :food "hamburgers" :color "blue"}}
   {:name "Raj Reddy" :fav {:number 7 :food "fried chicken" :color "black"}}
   {:name "Rocky Zheng" :fav {:number 2 :food "noodle" :color "black"}}
   {:name "Matt Anderson" :fav {:number 7 :food "hamburger" :color "blue"}}
   {:name "Vijay Akkineni" :fav {:number 3 :food "sushi" :color "green"}}
   {:name "Dave Harrison" :fav {:number 7 :food "steak" :color "green"}}
   {:name "Deepthi Devalarazu" :fav {:number 1 :food "pasta" :color "black"}}
   {:name "Michael Tidwell!!!" :fav {:number 21 :food "cantaloupe" :color "orange"}}
   {:name "Andy Piccolo" :fav {:number 3 :food "lobster" :color "green"}}])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment