enhance: use transducer in extract-refs-from-mldoc-ast

pull/6529/head
rcmerci 2022-09-22 15:01:24 +08:00
parent 1830b0c082
commit 40e7c29bd6
1 changed files with 6 additions and 6 deletions

View File

@ -119,12 +119,12 @@
(defn extract-refs-from-mldoc-ast
[v]
(->> v
(into #{}
(comp
(remove gp-mldoc/ast-link?)
(keep get-ref-from-ast)
(map (fn [x]
(string/trim x)))
(set)))
(map string/trim))
v))
(defn- sep-by-comma
[s]