A Clojure Story - Collections (Lists)

Being fairly new to clojure ecosystem. I thought it would be better to be dedicating a post to each of the data structures in Clojure.

Clojure has the following data structures

  ;; Lists
  ;; Vectors
  ;; Hashmaps
  ;; Sets

These are concrete data types, which are implementation of abstract data types.

This post will try to scratch the surface of - LISTS

LISTS


As the name goes, are a collection of group of values.

[Read more]

A Clojure Story - Basic Data Types

Clojure Data Types :

Type

A type is property some values share to collect all similar things. Every language has a type system. Some langugages have strict type system, some are relaxed.

Clojure is a dynamic and strongly typed language:

Dynamic - As the type checking is enforced on the fly/run time.

Strong - As operations on improper types are not allowed and errored out.

type function in clojure helps knowing what is the type of the expression. or Use class to inspect clojure expressions.

[Read more]