Skip to content

Instantly share code, notes, and snippets.

@timsgardner
Created January 28, 2016 18:24
Show Gist options
  • Save timsgardner/0de45471efb37ced2d26 to your computer and use it in GitHub Desktop.
Save timsgardner/0de45471efb37ced2d26 to your computer and use it in GitHub Desktop.
splice into, with transducer cat
(defn splice-into [v n xs]
(into (subvec v 0 n) cat [xs (subvec v n)]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment