diff --git a/collects/scribblings/htdp-langs/advanced.scrbl b/collects/scribblings/htdp-langs/advanced.scrbl index 13dcbc01dd..9bc2d3983b 100644 --- a/collects/scribblings/htdp-langs/advanced.scrbl +++ b/collects/scribblings/htdp-langs/advanced.scrbl @@ -52,7 +52,7 @@ (begin0 expr expr ...) (set! id expr) (delay expr) - (lambda (id id ...) expr) + (lambda (id ...) expr) (local [definition ...] expr) (letrec ([id expr] ...) expr) (shared ([id expr] ...) expr) @@ -60,7 +60,7 @@ (let id ([id expr] ...) expr) (let* ([id expr] ...) expr) (recur id ([id expr] ...) expr) - (code:line (expr expr expr ...) (code:comment #, @seclink["intermediate-lambda-call"]{function call})) + (code:line (expr expr ...) (code:comment #, @seclink["advanced-call"]{function call})) (cond [expr expr] ... [expr expr]) (cond [expr expr] ... [else expr]) (case expr [(choice choice ...) expr] ... @@ -133,6 +133,21 @@ function is allowed to accept zero arguments.} @; ---------------------------------------------------------------------- +@section[#:tag "advanced-call"]{Function Calls} + +@defform/none[(expr expr ...)]{ + +A function call in Advanced is the same as an Intermediate with Lambda +@seclink["intermediate-lambda-call"]{function call}, except that zero +arguments are allowed.} + +@defform[(#%app expr expr ...)]{ + +A function call can be written with @scheme[#%app], though it's +practically never written that way.} + +@; ---------------------------------------------------------------------- + @section{@scheme[begin]} @defform[(begin expr expr ...)]{ diff --git a/collects/scribblings/htdp-langs/intermediate-lambda.scrbl b/collects/scribblings/htdp-langs/intermediate-lambda.scrbl index c0e3af0b23..0ba2862bb4 100644 --- a/collects/scribblings/htdp-langs/intermediate-lambda.scrbl +++ b/collects/scribblings/htdp-langs/intermediate-lambda.scrbl @@ -107,7 +107,7 @@ Like a Beginning @seclink["beginner-call"]{function call}, except that the function position can be an arbitrary expression---perhaps a @scheme[lambda] expression or a @scheme[_prim-op].} -@defform[(#%app id expr expr ...)]{ +@defform[(#%app expr expr expr ...)]{ A function call can be written with @scheme[#%app], though it's practically never written that way.} diff --git a/collects/scribblings/more/more.scrbl b/collects/scribblings/more/more.scrbl index b90e1f06d3..b1766264a1 100644 --- a/collects/scribblings/more/more.scrbl +++ b/collects/scribblings/more/more.scrbl @@ -118,8 +118,8 @@ Back in @exec{mzscheme}, try loading the file and running @scheme[go]: (eval:alts (go) 'yep-it-works) ] -Try modifying @filepath{serve.ss}, and then running @scheme[(enter! -"serve.ss")] again to re-load the module, then check your changes. +Try modifying @filepath{serve.ss}, and then run @scheme[(enter! +"serve.ss")] again to re-load the module, and then check your changes. @; ---------------------------------------------------------------------- @section{``Hello World'' Server}