Skip to content

Commit

Permalink
Merge pull request #61 from jackfirth/fix-list-lens-#56
Browse files Browse the repository at this point in the history
Remove renaming of list-ref-lens to list-lens
  • Loading branch information
jackfirth committed Jul 7, 2015
2 parents 5b8b810 + f6eb771 commit a313abc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion info.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
(define collection 'multi)


(define version 0.1)
(define version 0.2)


(define deps
Expand Down
8 changes: 4 additions & 4 deletions lenses/list/list-ref-take-drop.scrbl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down
3 changes: 1 addition & 2 deletions lenses/list/main.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -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"))

0 comments on commit a313abc

Please sign in to comment.