Re: Final SRFI 171: Transducers
Arne Babenhauserheide 27 Oct 2019 07:44 UTC
Hi,
That sounds exciting! For example it finally provides a way to read
input line by line:
(import (ice-9 rdelim))
(port-transduce tlog rcons read-line port)
There’s one place I did not get right away:
(list-transduce (tmap (lambda (x) (+ x 1))) (rany odd?) (list 1 3 5)) => #f
(list-transduce (tmap (lambda (x) (+ x 1))) (rany odd?) (list 1 3 4 5)) => #t
I missed the (+ x 1) here so I thought that (rany odd?) should return #t
in both cases.
Best wishes,
Arne
--
Unpolitisch sein
heißt politisch sein
ohne es zu merken