Clojure Tutorial


Clojure Tutorial

Clojure is a high level, dynamic functional programming language. It is designed, based on the LISP programming language, and has compilers that makes it possible to be run on both Java and .Net runtime environment. This tutorial is fairly comprehensive and covers various functions involved in Clojure. All the functions are explained using examples for easy understanding.

Audience

This tutorial is designed for all those software professionals who are keen on learning the basics of Clojure and how to put it into practice.

Prerequisites

Before proceeding with this tutorial, familiarity with Java and LISP programming language is preferred.

Execute Clojure Online

For most of the examples given in this tutorial you will find Try it an option, so just make use of this option to execute your Clojure programs at the spot and enjoy your learning.

Try following example using Try it option available at the top right corner of the below sample code box −

(ns clojure.examples.hello
   (:gen-class))

(defn hello-world [username]
   (println (format "Hello, %s" username)))

(hello-world "world")


Advertisements