I currently have some core.async code that looks like:
(map< :foo ch)
However, map< and map> are now deprecated, with the suggestion to use
transducers instead. Unfortunately it's not obvious how to go about that.
At first I thought that I could use a pipe and a new channel:
(pipe ch (chan 1 (map :foo)))
But there's no distinction between channel input and output here. This
matters because I'm using a bidirectional channel from Chord
<https://github.com/jarohen/chord>.
I'm thinking that it would be nice to have some functions like:
(eduction< ch xform)
(eduction> ch xform)
(eduction ch xform)
So I could write something like:
(eduction< ch (map :foo))
Have I missed anything? Is there some equivalent to this functionality
already in core.async that I haven't noticed?
- James
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.