| 1 |
#!r6rs |
| 2 |
;; Copyright 2010 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 :42 eager-comprehensions) |
| 6 |
(export |
| 7 |
do-ec list-ec append-ec string-ec string-append-ec vector-ec |
| 8 |
vector-of-length-ec sum-ec product-ec min-ec max-ec any?-ec |
| 9 |
every?-ec first-ec last-ec fold-ec fold3-ec |
| 10 |
: :list :string :vector :integers :range :real-range :char-range |
| 11 |
:port :dispatched :do :let :parallel :while :until |
| 12 |
:-dispatch-ref :-dispatch-set! make-initial-:-dispatch |
| 13 |
dispatch-union :generator-proc) |
| 14 |
(import |
| 15 |
(except (rnrs) error) |
| 16 |
(rnrs r5rs) |
| 17 |
(srfi :39 parameters) |
| 18 |
(srfi :23 error) |
| 19 |
(for (srfi private vanish) expand) |
| 20 |
(srfi private include)) |
| 21 |
|
| 22 |
(define-syntax :-dispatch |
| 23 |
(identifier-syntax |
| 24 |
(_ (:-dispatch-param)) |
| 25 |
((set! _ expr) (:-dispatch-param expr)))) |
| 26 |
|
| 27 |
(let-syntax ((define (vanish-define define (:-dispatch)))) |
| 28 |
(include/resolve ("srfi" "%3a42") "ec.scm")) |
| 29 |
|
| 30 |
(define :-dispatch-param (make-parameter (make-initial-:-dispatch))) |
| 31 |
) |