Skip to content

Instantly share code, notes, and snippets.

@jebberjeb
Created October 19, 2013 03:41
Show Gist options
  • Save jebberjeb/7051420 to your computer and use it in GitHub Desktop.
Save jebberjeb/7051420 to your computer and use it in GitHub Desktop.
(ns test-app.core)
;; get from a map, vector, set
(def r (range 10))
(def m (->> r
(map (juxt (comp keyword str) identity))
(into {})))
(def v (apply vector (keys m)))
(def s (set (keys m)))
[(get m :5) (get v 1) (get s :5)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment