search


Power Turtle
Mon Feb 26 00:00:00 UTC 2018

Power Turtle not only allows us to program Clojure in the browser but also has lessons in multiple languages. Try to follow the lessons in English because it is the defacto language of computer science, science/engineering/mathematics. Start your lesson by clicking on Power Turtle

Clojure is a dialect of LISP. LISP stands for LIST Processing. All Clojure programs are represented as lists which can be nested to build more complex structures. In the lesson, we saw examples like (forward 50). That is a list with two elements. The first element is a function called foward and the second element 50 is the parameter or argument of that function. What other functions did you encounter in the lesson?

Functions are at the core of functional programming. There are many different perspective of what a function is. In the examples of this lesson, functions are like commands. This definition is not correct but it is the only way you've seen how functions are used. You will build up your intuition of what a function is by coding more. Functions are like lego blocks. We can compose and build more complex things from the humble idea of a function.