clove

Cheat sheet

The core of clove, grouped by what you're trying to do. Point at a name to see how to call it and what it does; click to keep it open. Printable PDF.

Basics

Collections

Lists

Make'() list list*
Readfirst rest peek
Changecons conj pop

Sequences

Functions

Define

Nameddefn defn- defmulti defmethod
Anonymousfn #(* % 2) letfn

Control

Branching

Two waysif if-not when when-not
Many wayscond condp case
Logicand or not
In orderdo

Looping

Looploop recur dotimes while
Comprehendfor doseq

Metadata

Usemeta with-meta vary-meta
Literal^:private ^{:doc "…"}

State and concurrency

Environment

Namespaces

Declarens require in-ns
Look around*ns* find-ns all-ns ns-publics resolve

Batteries

JSON (json)

Usejson/parse json/write

clove 0.9.0 · https://github.com/alexalemi/clove