Fork me on GitHub
#missionary
<
2022-01-09
>
mjmeintjes09:01:10

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?

leonoel12:01:50

That's concerning, thank you for raising the issue. https://github.com/leonoel/missionary/issues/55

leonoel14:01:49

I have released b.26, changelog : a fix for this bug ☝️

🎉 1
👍 1