1
1
mirror of https://github.com/kanaka/mal.git synced 2024-08-17 01:30:26 +03:00

Clarify "rest" builtin in guide.md

This commit is contained in:
Gavin Lewis 2019-11-16 09:14:55 -08:00
parent 609fc44f44
commit 66b7ea46ab

View File

@ -1339,7 +1339,9 @@ implementation. Let us continue!
and return the first element. If the list (or vector) is empty or
is `nil` then `nil` is returned.
* `rest`: this function takes a list (or vector) as its argument and
returns a new list containing all the elements except the first.
returns a new list containing all the elements except the first. If
the list (or vector) is empty or is `nil` then `()` (empty list)
is returned.
* In the main program, call the `rep` function with the following
string argument to define a new control structure.