Next: , Up: iklib syntaxes lambdas   [Index]


6.8.2.1 Named lambda syntaxes

Syntax: named-lambda ?who ?formals . ?lambda-body

Like lambda, but allows the specification of the identifier ?who, which is bound, as identifier syntax, to the fluid syntax __who__.

(define func
  (named-lambda it ()
    __who__))

(func)          ⇒ it
Syntax: named-case-lambda ?who . ?case-lambda-clauses

Like case-lambda, but allows the specification of the identifier ?who, which is bound, as identifier syntax, to the fluid syntax __who__.

(define func
  (named-case-lambda it
    (()
      __who__)))

(func)          ⇒ it