We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When you need to put a vector into another vector, from start until the end of the vector to insert.
(defn replace-subvec [v v2 index] {:pre [(vector? v) (vector? v2) (integer? index)]} (let [v-count (count v) index (if (<= index v-count) index v-count)] (persistent! (reduce-kv (fn [acc i el] (assoc! acc (+ i index) el)) (transient v) v2))))
The text was updated successfully, but these errors were encountered:
This function might be a little too specific for Medley.
Sorry, something went wrong.
No branches or pull requests
When you need to put a vector into another vector, from start until the end of the vector to insert.
The text was updated successfully, but these errors were encountered: