manual: Add the documentation for make-compose.

This commit is contained in:
Sergiu Ivanov 2021-01-15 22:57:37 +01:00
parent b8f3a54822
commit 69de457613
1 changed files with 12 additions and 0 deletions

View File

@ -65,6 +65,18 @@ fancy-add1
(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 ...)
#:contracts ([func expression])]{