I want to add a single element at the end of a vector, but I cannot find a function like vector-add. I am assuming that is because it acts as a deterrent not to try and do this.
Coming from a Clojure environment I am used to adding an element to the end of a vector and Clojure makes this efficient.
I can of course write a vector-add function using vector-append, but I want to know if there is a better solution before implementing my own vector-add.
I would prefer to keep using immutable data structures if possible.