Merge pull request #61 from jackfirth/fix-list-lens-#56
Remove renaming of list-ref-lens to list-lens
This commit is contained in:
commit
a313abc80e
2
info.rkt
2
info.rkt
|
@ -3,7 +3,7 @@
|
|||
(define collection 'multi)
|
||||
|
||||
|
||||
(define version 0.1)
|
||||
(define version 0.2)
|
||||
|
||||
|
||||
(define deps
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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"))
|
||||
|
|
Loading…
Reference in New Issue
Block a user