logary icon indicating copy to clipboard operation
logary copied to clipboard

Q: How to "fork" aka "bind" pipes together?

Open haf opened this issue 6 years ago • 3 comments

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

haf avatar Apr 19 '18 11:04 haf

what do you mean "bind" ? the else part ?

lust4life avatar Dec 14 '18 11:12 lust4life

Yes

haf avatar Dec 14 '18 17:12 haf

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.

lust4life avatar Dec 20 '18 14:12 lust4life