Add remaining assoc lens docs
This commit is contained in:
parent
0fc23328ec
commit
28fb782947
|
@ -157,4 +157,12 @@ source code: @url["https://github.com/jackfirth/lenses"]
|
|||
@lenses-examples[
|
||||
(define assoc-foo-lens (assoc-lens "foo" #:is-equal? string=?))
|
||||
(lens-view assoc-foo-lens '(("bar" 1) ("foo" 2) ("baz" 3)))
|
||||
]}
|
||||
]}
|
||||
|
||||
@defproc[(assv-lens [key any/c]) (lens/c (listof pair?) any/c)]{
|
||||
Equivalent to @racket[(assov-lens key #:is-equal? eqv?)].
|
||||
}
|
||||
|
||||
@defproc[(assq-lens [key any/c]) (lens/c (listof pair?) any/c)]{
|
||||
Equivalent to @racket[(assoc-lens key #:is-equal? eq?)].
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user