Docs: update example text to match example code.

master
Magnar Sveen 14 years ago
parent 0c55a4b513
commit f8d74ff99e
  1. 6
      README.md
  2. 6
      readme-template.md

@ -50,9 +50,9 @@ prefixed with two dashs instead of one.
## Anaphoric functions
While `-filter` takes a function to filter the list by, you can also use the
anaphoric form with double dashes - which will then be executed with `it` exposed
as the list item. Here's an example:
While `-map` takes a function to map over the list, you can also use
the anaphoric form with double dashes - which will then be executed
with `it` exposed as the list item. Here's an example:
```cl
(-map (lambda (n) (* n n)) '(1 2 3 4)) ;; normal version

@ -19,9 +19,9 @@ prefixed with two dashs instead of one.
## Anaphoric functions
While `-filter` takes a function to filter the list by, you can also use the
anaphoric form with double dashes - which will then be executed with `it` exposed
as the list item. Here's an example:
While `-map` takes a function to map over the list, you can also use
the anaphoric form with double dashes - which will then be executed
with `it` exposed as the list item. Here's an example:
```cl
(-map (lambda (n) (* n n)) '(1 2 3 4)) ;; normal version

Loading…
Cancel
Save