(parse-lines parse-fn lines tags)
Returns the lines parsed with the given function.
Spec
(clojure.spec.alpha/fspec
:args
(clojure.spec.alpha/cat
:parse-fn
clojure.core/fn?
:lines
(clojure.spec.alpha/coll-of clojure.core/string?)
:tags
:tag-soup.core/all-tags)
:ret
(clojure.spec.alpha/coll-of clojure.core/any?)
:fn
nil)
Source
(defn parse-lines
"Returns the lines parsed with the given function."
[parse-fn lines tags]
(loop [i 0
results (transient [])]
(if-let [line (get lines i)]
(recur (inc i) (conj! results (parse-fn line (get tags (inc i)))))
(persistent! results))))