Fork me on GitHub
#core-async
<
2019-11-12
>
ataggart00:11:05

Is there an out-of-the-box inverse of to-chan that I'm not seeing? I wrote my own implementation, but it seems like something that would already exist.

ataggart00:11:58

... yep... I knew that.

ataggart00:11:23

deleting code

ataggart00:11:24

Hmm, I thought I knew that, but I think that was just for applying an xform. I not seeing how to use into to consume from a channel.

ataggart00:11:06

The intent is:

(a/<!! (collect (a/to-chan [1 2 3])))
=> [1 2 3]
Which admittedly seems silly.

ghadi00:11:40

into takes a source channel of items, and returns a channel of a collection

ghadi00:11:51

it will only return the collection after the source channel closes

ataggart00:11:21

sigh, async into, not core into

Alex Miller (Clojure team)00:11:28

you can reduce off a channel too

ataggart00:11:30

ok, no more work for me today

ghadi00:11:04

heh, I ran into my wall an hour ago 🙂

trollface 4