The cartesian programming language Wiki
A functional programming language
Brought to you by:
grevent
In this page, we will give you a very short introduction, with the goal to show you some concepts of the cartesian language.
:::cartesian
define fact n = if n >= 1 then n*(fact (n - 1)) else 1
(fact 10)
For everyone having used languages like ocaml, or scheme, the comprehension is evident: The "fact" function is defined recursively, then called. If you try the code in the interpreter, you will be surprised to get an error: