Debian Codegraph @

%3a8/receive.sls

raw
1 #!r6rs
2 ;; Copyright 2009 Derick Eddington. My MIT-style license is in the file named
3 ;; LICENSE from the original collection this file is distributed with.
4
5 (library (srfi :8 receive)
6 (export receive)
7 (import (rnrs))
8
9 (define-syntax receive
10 (syntax-rules ()
11 ((_ formals expression b b* ...)
12 (call-with-values
13 (lambda () expression)
14 (lambda formals b b* ...)))))
15
16 )