{:check ["true"],
 :title ["Core functions on data structures"],
 :rank ["list" "vector" "hashmap"]}

Index

Functions On Data Structures

In this section, we introduce many built-in functions provided by Clojure to create, access and transform lists, vectors and maps.

box

https://clojure.org/api/cheatsheet

Lists

  • seq
  • range
  • first
  • rest
  • last
  • nth
  • take
  • take-last
  • drop
  • cons
  • conj
  • concat
  • into
  • count
  • sort
  • sort-by
  • reverse

Vector

  • vector
  • vec
  • first
  • rest
  • last
  • nth
  • conj
  • into
  • concat

Hash-maps

  • hash-map
  • zipmap
  • keys
  • vals
  • get
  • get-in
  • contains?
  • assoc
  • assoc-in
  • dissoc
  • update
  • update-in
  • merge
  • merge-with
  • into