Document zero-arg behavior of lens-compose

This commit is contained in:
Jack Firth 2015-07-10 18:41:56 -07:00
parent 59d30d553e
commit bbd9fde49b

View File

@ -10,7 +10,8 @@
The compound lens operates similarly to composed functions do in
that the last @racket[lens] is the first @racket[lens] the compound
lens's target is viewed through. Each successive lens "zooms in"
to a more detailed view.
to a more detailed view. When called with no arguments, @racket[lens-compose]
produces the identity lens.
@lenses-examples[
(define first-of-second-lens (lens-compose first-lens second-lens))
(lens-view first-of-second-lens '((1 a) (2 b) (3 c)))