diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:05:29 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2017-02-20 00:05:29 -0800 |
commit | 8466d8cfa486fb30d1755c4261b781135083787b (patch) | |
tree | c8c12c67246f543c3cc4f64d1c07e003cb1d45ae /srfi-8.scm | |
parent | 87b82b5822ca54228cfa6df29be3ad9d4bc47d16 (diff) | |
download | slib-8466d8cfa486fb30d1755c4261b781135083787b.tar.gz slib-8466d8cfa486fb30d1755c4261b781135083787b.zip |
Import Upstream version 3a1upstream/3a1
Diffstat (limited to 'srfi-8.scm')
-rw-r--r-- | srfi-8.scm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/srfi-8.scm b/srfi-8.scm new file mode 100644 index 0000000..049451f --- /dev/null +++ b/srfi-8.scm @@ -0,0 +1,14 @@ +;;"srfi-8.scm": RECEIVE: Binding to multiple values + +(require 'values) + +;;@code{(require 'srfi-8)} +;;@ftindex srfi-8 + +;;@body +;;@url{http://srfi.schemers.org/srfi-8/srfi-8.html} +(define-syntax receive + (syntax-rules () + ((receive formals expression body ...) + (call-with-values (lambda () expression) + (lambda formals body ...))))) |