mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-11 05:25:28 +03:00
Mention 'fn' in language guide.
This commit is contained in:
parent
19bc787b12
commit
be1575a2b1
@ -69,6 +69,7 @@ The following forms can be used in Carp source code and will be compiled to C af
|
||||
and other static analysis. The first three of them are also available in dynamic functions.
|
||||
|
||||
```clojure
|
||||
(fn [<arg1> <arg2> ...] <body>) ;; Create a lambda function (a.k.a. closure)
|
||||
(let [<var1> <expr1> <var2> <expr2> ...] <body>) ;; Create local bindings
|
||||
(do <expr1> <expr2> ... <return-expression>) ;; Perform side-effecting functions, then return a value
|
||||
(if <expression> <true-branch> <false-branch>) ;; Branching
|
||||
|
Loading…
Reference in New Issue
Block a user