manual: Add the documentation for make-compose.
This commit is contained in:
parent
b8f3a54822
commit
69de457613
12
manual.scrbl
12
manual.scrbl
|
@ -65,6 +65,18 @@ fancy-add1
|
||||||
(fancy-add1 "1")
|
(fancy-add1 "1")
|
||||||
]}
|
]}
|
||||||
|
|
||||||
|
@section{Macros for composing functions}
|
||||||
|
|
||||||
|
@defform[(make-compose n)
|
||||||
|
#:contracts ([n exact-nonnegative-integer])]{
|
||||||
|
|
||||||
|
Expants to a typed @racket[lambda] form composing exactly @racket[n]
|
||||||
|
one-argument functions. For example, @racket[compose-3] is defined as:
|
||||||
|
@racket[(define compose-3 (make-compose 3))]. The rest of the functions of the
|
||||||
|
@racket[compose-i] family are defined using this macro as well.
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@defform[(multi-compose func ...)
|
@defform[(multi-compose func ...)
|
||||||
#:contracts ([func expression])]{
|
#:contracts ([func expression])]{
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue