This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-09
Channels
- # announcements (14)
- # babashka (2)
- # beginners (33)
- # calva (25)
- # cider (4)
- # clj-kondo (14)
- # clojure (11)
- # cursive (4)
- # datomic (3)
- # fulcro (53)
- # gratitude (3)
- # integrant (2)
- # leiningen (7)
- # lsp (10)
- # malli (34)
- # missionary (3)
- # off-topic (71)
- # other-languages (18)
- # pathom (1)
- # practicalli (2)
- # releases (1)
- # ring (4)
- # spacemacs (1)
- # vim (14)
I'm trying to understand why the following code hangs:
(m/?
(m/reduce
conj
(m/ap
(let [[g fl] (->> (m/seed [1 2 1 1 3 1])
(m/group-by (comp keyword str))
m/?=)
i (m/?> fl)]
(when (= g :2)
(throw (ex-info "GROUP 2" {})))
(println "GROUP" g " VAL " i)
[g i]))))
What's the best way to deal with exceptions within the group-by?That's concerning, thank you for raising the issue. https://github.com/leonoel/missionary/issues/55