Clojure’s Persistence Collections

Clojure uses persistence collections such as list, vector and map to #make copy efficient.

List is constructed as a singly linked list. It allows sequential access, but random access is forbidden. List could only point to another list or to itself.

Vector is constructed as a 202112121746. It allows sequential access as well as random access by referring to its index number.

Map is constructed as a 202112122035. It allows only random access by referring to the key stored in it.

Links to this page
  • Clojure

    Clojure is a #functional Lisp programming language. Although like other functional programming it emphasises on 202202081524, Clojure also allows impure functions. 202203061126# and keywords could act as functions too.

#clojure #container #memory #list #hash-table #lisp