document sublist-lens and add it to unstable/lens
This commit is contained in:
parent
2ac16f4c82
commit
9382b739fe
|
@ -4,10 +4,14 @@
|
|||
"compound.rkt"
|
||||
"list.rkt"
|
||||
"hash.rkt"
|
||||
"view-set.rkt")
|
||||
"view-set.rkt"
|
||||
"sublist.rkt"
|
||||
)
|
||||
|
||||
(provide (all-from-out "syntax.rkt"
|
||||
"compound.rkt"
|
||||
"list.rkt"
|
||||
"hash.rkt"
|
||||
"view-set.rkt"))
|
||||
"view-set.rkt"
|
||||
"sublist.rkt"
|
||||
))
|
||||
|
|
|
@ -14,3 +14,4 @@ this library being backwards-compatible.
|
|||
@include-section["list.scrbl"]
|
||||
@include-section["hash.scrbl"]
|
||||
@include-section["syntax.scrbl"]
|
||||
@include-section["sublist.scrbl"]
|
||||
|
|
13
unstable/lens/sublist.scrbl
Normal file
13
unstable/lens/sublist.scrbl
Normal file
|
@ -0,0 +1,13 @@
|
|||
#lang scribble/manual
|
||||
|
||||
@(require lens/doc-util/main)
|
||||
|
||||
@title{Sublist lenses}
|
||||
|
||||
@defmodule[unstable/lens/sublist]
|
||||
|
||||
@defproc[(sublist-lens [i exact-nonnegative-integer?] [j exact-nonnegative-integer?]) lens?]{
|
||||
@lenses-unstable-examples[
|
||||
(lens-view (sublist-lens 1 4) '(0 1 2 3 4 5))
|
||||
(lens-set (sublist-lens 1 4) '(0 1 2 3 4 5) '(a b c))
|
||||
]}
|
Loading…
Reference in New Issue
Block a user