Welcome to DrScheme, version 301.
Language: Typedscm, typed extension to EoPL(2e) custom.
Teachpack: C:\cygwin\usr\local\PLT\teachpack\drscheme-342-teachpack.scm.
> (require "my-3-5.scm")
> (run "let f = proc (x) 3 in (f 4 2)")
. . my-3-5.scm::6062: apply-procval: Wrong number of actual arguments, 2, to procedure 
 (closure (x) #<struct:lit-exp> "<env>")
> (run "(proc(x) 3)")
. . my-3-5.scm::6062: apply-procval: Wrong number of actual arguments, 0, to procedure 
 (closure (x) #<struct:lit-exp> "<env>")
> (run "let add3 = proc (x, y, z) +(x,+(y,z)) in (add3 4 2)")
. . my-3-5.scm::6062: apply-procval: Wrong number of actual arguments, 2, to procedure 
 (closure (x y z) #<struct:primapp-exp> "<env>")
> (run "let add3 = proc (x, y, z) +(x,+(y,z)) in (add3 4 2 5 6)")
. . my-3-5.scm::6062: apply-procval: Wrong number of actual arguments, 4, to procedure 
 (closure (x y z) #<struct:primapp-exp> "<env>")
> (run "let add3 = proc (x, y, z) +(x,+(y,z)) in (add3 4 2 5)")
11
> 
