1

Clojure by Example

Manual / Guide - Beginner kimh.github.io

Clojure

I don't like reading thick O'Reilly books when I start learning new programming languages. Rather, I like starting by writing small and dirty code. If you take this approach, having many simple code examples are extremely helpful because I can find answers to these questions very easily.


How can I define a function?


What's the syntax for if and else?


Does the language support string interpolation?


What scopes of variables are available?


These are very basic questions, but enough to start hacking with the new languages.


Recently, I needed to learn this completely new language Clojure but couldn't find what I wanted. So, I decided to create one while learning Clojure.


Clojure is a functional programming language and learning functional programming languages is sometimes hard if you've only had experiences with imperative languages. I have paid careful attention to make this page easy to understand for people who don't have experiences with functional programming languages, so please don't hesitate to read this page even if you don't know anything about functional programming.