From 240d96bdddae91dd08421597f76e4629b7986919 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Wed, 28 Sep 2016 18:42:32 -0400 Subject: [PATCH] Added docs --- docs/api/scheme/case-lambda.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/api/scheme/case-lambda.md b/docs/api/scheme/case-lambda.md index fcc8f5a0..e7826f3e 100644 --- a/docs/api/scheme/case-lambda.md +++ b/docs/api/scheme/case-lambda.md @@ -8,3 +8,8 @@ For more information see the [R7RS Scheme Specification](../../r7rs.p #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.