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.
into
🤦
... yep... I knew that.
deleting code
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.
The intent is:
(a/<!! (collect (a/to-chan [1 2 3])))
=> [1 2 3]
Which admittedly seems silly.into
takes a source channel of items, and returns a channel of a collection
it will only return the collection after the source channel closes
sigh, async into, not core into
you can reduce
off a channel too
ok, no more work for me today
heh, I ran into
my wall an hour ago 🙂