Summary

case-lambda expects 2 arguments

Metadata

Description

from the case-lambda documentation:

(define plus

 (case-lambda
   (() 0)
   ((x) x)
   ((x y) (+ x y))
   ((x y z) (+ (+ x y) z))
   (args (apply + args))))

causes: => Error: (#f) "during expansion of (case-lambda ...) - bad argument count - received 5 but expected 2": (#<procedure (min a b)>)

Changes and comments

[2017-07-18 19:44:37 UTC] sjamaan wrote:

It sounds like you've overridden or redefined something else that breaks this. If I run the code above, it just works.

[2018-04-27 17:56:47 UTC] evhan changed status from new to closed

[2018-04-27 17:56:47 UTC] evhan set resolution to worksforme