Basic Clojure
To try out LambdaCD, here’s what you need to know:
- How to install Leiningen (this is the build-tool we are using, like Maven in Java)
- Syntax
(foo "bar" 5): this executes the functionfoowith the arguments"bar"(which is a string) and5(an integer){ :foo "bar" }: this is a map with a key:foomapping to a value"bar"(defn add [a b] (+ a b)): this defines a functionaddwith two parametersaandbthat returns the sum ofaandb-
You’ll also need an editor. LightTable is very popular at the moment, but you can really use anything. If you are used to IntelliJ, try out the Cursive
References
This will most likely not be enough so here are some places with more detailed infos: