Re: A few half-baked ideas for SRFI 210 Marc Nieper-Wißkirchen 31 Aug 2020 18:17 UTC

Am Mo., 31. Aug. 2020 um 18:17 Uhr schrieb Marc Nieper-Wißkirchen
<xxxxxx@gmail.com>:

> Further syntax (also related to pipelining), we should consider to add are:
>
> (bind <producer> <transducer> ... <consumer>)
>
> which is evaluated by evaluating all arguments and then by calling the
> value of the first <transducer> with the values of <producer>, calling
> the value of the next <transducer> with the resulting values and so on
> until the the value of <consumer> is called to yield the final values.
>
> Related is
>
> (compose transducer ... transducer),
>
> which is just multiple-value-aware composition (this doesn't have to
> be syntax; it could be a procedure).
>
> and
>
> (bind* list transducer ... consumer)
>
> which is a procedure evaluating
>
> (bind (apply values list) transducer ... consumer)

A better name for bind* would be bind-list. And then we can have
bind-vector and bind-box as well.

Marc