Documented opt-lambda: and popt-lambda:.

This commit is contained in:
Vincent St-Amour 2011-01-28 12:36:50 -05:00
parent 152c636e1c
commit 4b3e621d0f

View File

@ -296,6 +296,14 @@ A function of multiple arities. Note that each @racket[formals] must have a
different arity.} different arity.}
@defform[(pcase-lambda: (a ...) [formals body] ...)]{ @defform[(pcase-lambda: (a ...) [formals body] ...)]{
A polymorphic function of multiple arities.} A polymorphic function of multiple arities.}
@defform/subs[(opt-lambda: formals . body)
([formals ([v : t] ... [v : t default] ...)
([v : t] ... [v : t default] ... . [v : t *])
([v : t] ... [v : t default] ... . [v : t ...])])]{
A function with optional arguments.}
@defform[(popt-lambda: (a ...) formals . body)]{
A polymorphic function with optional arguments.}
@subsection{Loops} @subsection{Loops}