Skip to content

Commit

Permalink
Merge pull request #813 from ewaldgrusk/improve-documentation-of-the-…
Browse files Browse the repository at this point in the history
…let-form

Documents (left-to-right) order of variable assignments in let expressions
  • Loading branch information
berkerpeksag committed Jun 14, 2015
2 parents 5b55242 + 296b6ea commit 2ad8d44
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/language/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
---------
Expand Down

0 comments on commit 2ad8d44

Please sign in to comment.