From 69de45761367a99ee919ba84c33abddb06419e87 Mon Sep 17 00:00:00 2001 From: Sergiu Ivanov Date: Fri, 15 Jan 2021 22:57:37 +0100 Subject: [PATCH] manual: Add the documentation for make-compose. --- manual.scrbl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/manual.scrbl b/manual.scrbl index 9ecb3ef..c795e95 100644 --- a/manual.scrbl +++ b/manual.scrbl @@ -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])]{