blob: 2bce856c0c31dfd7b1a44b340d8fbfc2cff40596 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
(let [typeof {(type '(1)) :list
(type []) :vector
(type {}) :map}]
(defn collection-type [col] (typeof (type col))))
(println (collection-type '(1 2 3)))
(println (collection-type [1 2 3]))
(println (collection-type {1 2, 3 4}))
|