Created
October 19, 2013 03:41
-
-
Save jebberjeb/7051420 to your computer and use it in GitHub Desktop.
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
(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