aleph

2018-02-23T16:49:13.000159Z

I like to drain a stream into a vector without blocking. core.async has into which returns a channel. I look for a stream into which returns a deferred. stream->seq will block if I need the whole seq.

mccraigmccraig 2018-02-23T16:55:17.000551Z

@akiel (stream/reduce conj [] <stream>) should do it

2018-02-23T16:56:00.000274Z

oh there is a reduce - thanks!

mccraigmccraig 2018-02-23T16:59:29.000292Z

there is transducer support too @akiel with stream/transform ... make sure you use a recent version though - there was a bug which bit me before 0.1.7-alpha6

2018-02-23T17:02:06.000125Z

I use still 0.1.6 what was the problem?

mccraigmccraig 2018-02-23T17:03:05.000350Z

this - https://github.com/ztellman/manifold/issues/146

mccraigmccraig 2018-02-23T17:04:35.000429Z

it doesn't affect reduce ... just transform with transducers with state

2018-02-23T17:04:54.000035Z

ok thanks