Created
December 20, 2011 12:41
-
-
Save yamaneko1212/1501441 to your computer and use it in GitHub Desktop.
7つの言語Clojure1日目セルフスタディ2 ref: http://qiita.com/items/1421
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
(def obj-map {(class {}) :map (class []) :vector (class '()) :list (class '(nil)) :list}) | |
(defn collection-type [col] (obj-map (class col))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment