logary
logary copied to clipboard
Q: How to "fork" aka "bind" pipes together?
Like
(where (or (service #"^api")
(service #"^app"))
(where (tagged "exception")
(rollup 5 3600
(email "[email protected]"))
(else
(changed-state
(email "[email protected]")))))
https://gist.github.com/haf/2296fe13e53955d45ce637b8ad550deb
what do you mean "bind" ? the else
part ?
Yes
since we use |>
to chains the pipes, so branch control need come from function callback, seems clojure here is more expressive .
will try to look it later to see if we can build a CE
to handle things like this.