Welcome to the CHICKEN Scheme pasting service

case-lambda & #!optional added by mario-goulart on Mon Oct 24 14:59:27 2011

csi> (define foo (case-lambda (() 'bar) ((bar #!optional baz) baz)))
csi> (foo)
bar
csi> (foo 1)

Error: no matching clause in call to 'case-lambda' form

        Call history:

        <syntax>          (foo 1)
        <eval>    (foo 1)
        <eval>    [foo] (length rvar79)
        <eval>    [foo] (eq?82 lvar80 0)
        <eval>    [foo] (eq?82 lvar80 3)
        <eval>    [foo] (##sys#error (##core#immutable (quote "no matching clause in call to 'case-lambda' form")))     <--

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Proper ... recursion is required by the Scheme specification.
Visually impaired? Let me spell it for you (wav file) download WAV