Clojure's data types
Now is when everything you know about Java pays off; even the list forms that you saw earlier implement the java.util.List interface. Clojure was designed to be embeddable and to have a great integration with the host platform, so it's only natural that you can use everything you already know about Java types and objects.
There are two data types in Clojure: scalars and collections.
Scalars
In every language you need primitive types; you use them in everyday life as they represent numbers, strings, and Booleans. These primitive types are called scalars in the Clojure world.
Clojure has a couple of very interesting types like ratios and keywords. In the following table, you get to know the different types of scalars, how they compare ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access