fix htdp doc errors (PR 9846)
svn: r12102
This commit is contained in:
parent
bb7d3d1a28
commit
70146a8d3f
|
@ -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 ...)]{
|
||||
|
|
|
@ -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.}
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue
Block a user