chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New egg: CHICKEN Transducers


From: siiky
Subject: Re: New egg: CHICKEN Transducers
Date: Fri, 6 Jan 2023 14:17:21 +0000

For one, that's not the same code. :p The SRFI 42 code I showed loops over all possible pairs, doesn't zip the inputs.

Just occured to me that I could put one transducer inside the other, something like this:

(transduce list-fold
           (map (lambda (x)
                  (transduce vector-fold
                             (map (cute * x <>))
                             collect-list
                             vec)))
           collect-concat-list)

Assuming collect-concat-list concatenates the resulting list-of-lists. It's not as pretty but doable.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]