3 ms·
I don't suppose I could talk you into re-writing it into idiomatic clojure? Since someone else already rewrote it in idiomatic scala.
by TylerE 13y ago
I don't suppose I could talk you into re-writing it into idiomatic clojure? Since someone else already rewrote it in idiomatic scala.
- brandonbloom 13y agoJust guessing from context, but probably something like this: (defn completion-items [items options] (->> (for [[item v] items] (when-let [nonterminal (expected-symbol item options)] (when-let [next-value (gen-next-value v options)] [(update-in item [:dot] inc) next-value]))) (remove nil?) (into {})))