Skip to content

Commit

Permalink
added an "also"
Browse files Browse the repository at this point in the history
  • Loading branch information
k4y3ff committed Apr 21, 2014
1 parent 624be3a commit 09445af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion outline/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ When you are creating functions, you may want to assign names to values in order

This is the most complicated function we've seen so far, so let's go through each step. First, we have the name of the function, the documentation string, and the arguments, like in other functions.

Next, we see `let`. `let` takes a vector of alternating names and values. `largest` is the first name, and we assign the result of `(reduce max numbers)` to it. We assign the result of `(reduce min numbers)` to `smallest`.
Next, we see `let`. `let` takes a vector of alternating names and values. `largest` is the first name, and we assign the result of `(reduce max numbers)` to it. We also assign the result of `(reduce min numbers)` to `smallest`.

After the vector of names and values, there is the body of the `let`. Just like a the body of a function, this executes and returns a value. Within the `let`, `largest` and `smallest` are defined.

Expand Down

0 comments on commit 09445af

Please sign in to comment.