Remove renaming of list-ref-lens to list-lens
This commit is contained in:
Jack Firth 2015-07-06 17:13:21 -07:00
commit a313abc80e
3 changed files with 6 additions and 7 deletions

View File

@ -3,7 +3,7 @@
(define collection 'multi)
(define version 0.1)
(define version 0.2)
(define deps

View File

@ -10,13 +10,13 @@
@title{List lenses}
@defproc[(list-lens [n exact-nonnegative-integer?])
@defproc[(list-ref-lens [n exact-nonnegative-integer?])
lens?]{
Returns a lens for viewing the @racket[n]th item of a list,
with indexing starting from zero.
@lenses-examples[
(lens-view (list-lens 3) '(a b c d e f g h))
(lens-set (list-lens 1) '(a b c d e f g h) 'FOO)
(lens-view (list-ref-lens 3) '(a b c d e f g h))
(lens-set (list-ref-lens 1) '(a b c d e f g h) 'FOO)
]}
@deflenses[(first-lens
@ -30,7 +30,7 @@
ninth-lens
tenth-lens)]{
Lenses for examiniming specific items of lists. Shorthands
for the common use cases of @racket[list-lens].
for the common use cases of @racket[list-ref-lens].
@lenses-examples[
(lens-view third-lens '(a b c d))
(lens-view (lens-compose second-lens fourth-lens)

View File

@ -9,5 +9,4 @@
"car-cdr.rkt"
"list-ref-take-drop.rkt"
"cadr-etc.rkt"
"assoc.rkt")
(rename-out [list-ref-lens list-lens]))
"assoc.rkt"))