documents order of variable assignments in let expressions

This commit is contained in:
Ewald Grusk 2015-06-13 21:10:57 +02:00
parent 5b55242455
commit 296b6eaa2a

View File

@ -988,6 +988,14 @@ used.
=> (let [x [y 5]] (print x y))
None 5
Note that the variable assignments are executed one by one, from left to right.
The following example takes advantage of this:
.. code-block:: clj
=> (let [[x 5] [y (+ x 1)]] (print x y))
5 6
list-comp
---------