Welcome! Please see the About page for a little more info on how this works.
Can we get a generic sink operation?
` (defn sink "Fully consumes and discards a channel, applying f to each val. Returns a channel that closes when ch is fully drained" [f ch] (go-loop [] (when-some [v (<! ch))]</p>
`
(f v) (recur))))
Comment made by: glts
I cast my vote and want to remark that perhaps the lack of this 'sink operation' can be felt more acutely since the introduction of run! in 1.7, a sink for seqs.
run!