我在 clojurescript 中找到了一个结果,其中 aset 被链接:
(def data (js-obj))
(-> data 
    (aset "a" "a")
    (aset "b" "b"))
(aget data "a") ;=> "a"
(aget data "b") ;=> 'returns nothing'
然而
(-> 1 inc dec) ;=> returns 1, which is fine
    我在 clojurescript 中找到了一个结果,其中 aset 被链接:
(def data (js-obj))
(-> data 
    (aset "a" "a")
    (aset "b" "b"))
(aget data "a") ;=> "a"
(aget data "b") ;=> 'returns nothing'
然而
(-> 1 inc dec) ;=> returns 1, which is fine