Fix a few trivial typos.

This commit is contained in:
Peter 2016-07-28 10:41:10 +02:00
parent 2d5c736df4
commit 9600e57fee
3 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@
@defproc[(assoc-lens [key any/c] [#:is-equal? key-equal? (-> any/c any/c any/c) equal?])
lens?]{
Constructs a lens for examiniming association lists.
Constructs a lens for examining association lists.
Specifically, for a given association list the returned
lens examines the second value of the first pair that
has a key that is @racket[key-equal?] to @racket[key].

View File

@ -25,7 +25,7 @@
eighth-lens
ninth-lens
tenth-lens)]{
Lenses for examiniming specific items of lists. Shorthands
Lenses for examining specific items of lists. Shorthands
for the common use cases of @racket[list-ref-lens].
@lens-examples[
(lens-view third-lens '(a b c d))

View File

@ -50,8 +50,8 @@ create a lens that performs indexed lookups for nested lists using only @racket[
This can also be generalized to @emph{n}-dimensional lists:
@(lens-interaction
(define (list-ref-lens* . indicies)
(apply lens-compose (map list-ref-lens indicies)))
(define (list-ref-lens* . indices)
(apply lens-compose (map list-ref-lens indices)))
(lens-set (list-ref-lens* 0 1 0)
'(((a b) (c d))
((e f) (g h)))