我有这个:
(defn my-page []
(layout/render
"page1.html" ({:articles (map
#(update % :field1 (fn [d] (something.... )))
(db/get-all-articles))})))
; how can I call map again to process other fields?
; (map for :field2 .... ???? how?)
; (map for :field3 .... ???? how?)
我也想预处理其他字段。我怎样才能正确地做到这一点?我的意思是,既然我已经有了变量 :article 和函数映射,我将如何为其他字段(例如 :field2 和 field3)再次映射?