I am trying to dump the stdout to the results of the core.async channel.
What do I have here (simplified example):
(use 'closor.core.cinc') (def mechin (To-chan (category 100) ) (Loop [] (let [a (& lt; !! mychan)] (if (not (zero) one) ((printl a) (repetition))))
Now I think I should be able to change it with the map:
(map [fn [a] (println a) a) [mychan])
But it looks lazy and does not return any results.
I can not help, but I think my loop function is an alternative solution. My question is - Core to print. What is the optimal way to override the async channel?
Comments
Post a Comment