cyclone/docs/api/scheme/case-lambda.md
Justin Ethier 1df3dacb61 Sync
2016-10-04 00:26:49 -04:00

634 B

layout title
main API

Case-Lambda Library

The (scheme case-lambda) library exports the case-lambda syntax.

For more information see the R7RS Scheme Specification.

case-lambda

(case-lambda {clause} ...)

Syntax: Each {clause} is of the form ({formals} {body}), where {formals} and {body} have the same syntax as in a lambda expression.

Semantics: A case-lambda expression evaluates to a procedure that accepts a variable number of arguments and is lexically scoped in the same manner as a procedure resulting from a lambda expression.