O'Reilly logo

Web Development with Clojure by Dmitri Sotnikov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Data Types

Clojure provides a number of data types, most of which are unsurprising:

  • Vars provide mutable storage locations. These can be bound and rebound on a per-thread basis.

  • Booleans can have a value of true or false; nil values are also treated as false.

  • Numbers can be integers, doubles, floats, and fractions.

  • Symbols are used as identifiers for variables.

  • Keywords are symbols that reference themselves and are denoted by a colon; these are often used as keys in maps.

  • Strings are denoted by double quotes and can span multiple lines.

  • Characters are denoted by a forward slash.

  • Regular expressions are strings prefixed with a hash symbol.

In addition to the data types, Clojure provides a rich set of standard collections. These include lists, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required