3 ms·
Just guessing from context, but probably something like this: (defn completion-items [items options] (->> (for [[item v] items] (when-le
by brandonbloom 13y ago
Just 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 {})))