Friday, January 2, 2015

How to get a type in Clojure

To get a type in Clojure,

you can use the type macro as follows:

(println (type 10))

Then you will get the following result:

java.lang.Long

Reference:
https://clojuredocs.org/clojure.core/type

No comments:

Post a Comment