Created
January 28, 2016 18:24
-
-
Save timsgardner/0de45471efb37ced2d26 to your computer and use it in GitHub Desktop.
splice into, with transducer cat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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