VL
Size: a a a
VL
AC
AC
DL
AC
OR
AC
AC
DL
(defn map-but-last [in f1 f2]
(loop [res []
[x & xs] in]
(if xs
(recur (conj res (f1 x)) xs)
(conj res (f2 x)))))
(map-but-last [1 2 3] (partial * 0) identity)
;; [0 0 3]
DL
#(%1 %2)
T
#(%1 %2)
DL
MB
DL
DL
DL
DL
(defn map-but-last [in f1 f2]ну или так :), ко всему прочему лениво
(map #(%1 %2)
(-> in count dec
(repeat f1)
(concat [f2]))
in))
DL