1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-20 10:07:45 +03:00

Merge pull request #60 from sunzenshen/patch-1

Clean up typos in section "Step 4: If Fn Do"
This commit is contained in:
Joel Martin 2015-04-07 09:24:07 -05:00
commit 132f9c9c42

View File

@ -644,13 +644,13 @@ diff -urp ../process/step3_env.txt ../process/step4_if_fn_do.txt
* Add support to `printer.qx` to print functions values. A string
literal like "#<function>" is sufficient.
* Add the following special forms to `EVAL`.
* Add the following special forms to `EVAL`:
* `do`: Evaluate the all the elements of the list using `eval_ast`
* `do`: Evaluate all the elements of the list using `eval_ast`
and return the final evaluated element.
* `if`: Evaluate the first parameter (second element). If the result
(condition) is anything other than `nil` or `false`, then evaluate
the second parammeter (third element of the list) and return the
the second parameter (third element of the list) and return the
result. Otherwise, evaluate the third parameter (fourth element)
and return the result. If condition is false and there is no third
parameter, then just return `nil`.