Fork me on GitHub
#beginners
<
2018-02-15
>
funyako.funyao15602:02:31

Hi everyone, why the author in this video https://youtu.be/-SMHkPAEGIk?t=547 compose core.async pipeline's like that instead of composing the transducer? @pri

alexmiller03:02:53

I don’t know if I can answer to specifics there but one reason to do so is that pipelines let you separate stages and give each a concurrent, possibly different sized pool of threads. Depending on the chunkiness of each stage and whether you need to tee or tap between that can be useful

alexmiller03:02:08

Transducers inside a channel occur in a single thread at a time and happen under the channel lock which has blocking consequences as well

alexmiller03:02:48

Both are useful but they have trade offs

josmith201622:02:06

How do I take a vector of maps and turn it into a new vector of maps based on the maps in the first vector?

josmith201622:02:20

thanks @joelsanchez