assoc works fine for that. It takes the index where to put the new value and return the newly created vector: Clojure> (assoc [1 2 3] 1 5) ...
確定! 回上一頁