4 ms·
Linq is indeed nice. The Clojure code can be made easier to understand using a list comprehension: (reduce + (for [{:keys [productioncost sdfactor]}
by cgrand-net 17y ago
Linq is indeed nice. The Clojure code can be made easier to understand using a list comprehension:
(reduce +
(for [{:keys [productioncost sdfactor]} assets
:let [liquidvalue (* productioncost sdfactor)]
:when (> liquidvalue (* productioncost 2))]
productioncost))