don't convert lists to vectors in LAST
This commit is contained in:
parent
9d859e0fae
commit
23e58ae223
1 changed files with 1 additions and 5 deletions
|
|
@ -12,10 +12,6 @@
|
||||||
#?(:clj [clojure.core.reducers :as r])))
|
#?(:clj [clojure.core.reducers :as r])))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(defn- append [coll elem]
|
|
||||||
(-> coll vec (conj elem)))
|
|
||||||
|
|
||||||
(defn not-selected?*
|
(defn not-selected?*
|
||||||
[compiled-path structure]
|
[compiled-path structure]
|
||||||
(->> structure
|
(->> structure
|
||||||
|
|
@ -332,7 +328,7 @@
|
||||||
(cons (afn (first l)) (rest l)))
|
(cons (afn (first l)) (rest l)))
|
||||||
|
|
||||||
(defn- update-last-list [l afn]
|
(defn- update-last-list [l afn]
|
||||||
(append (butlast l) (afn (last l))))
|
(concat (butlast l) [(afn (last l))]))
|
||||||
|
|
||||||
#?(
|
#?(
|
||||||
:clj
|
:clj
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue