Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. # vector-map {{tag>clojure fnil}} <code clojure> (defn ->vector-map [m [k v]] (update m k (fnil conj []) v)) (->vector-map {} [:k 1]) ;;=> {:k [1]} (->vector-map {:k [1]} [:k 2]) ;;=> {:k [1 2]} </code> open/vector-map.txt Last modified: 2024/10/05 06:15by 127.0.0.1