Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mariussoutier/1220589 to your computer and use it in GitHub Desktop.
Save mariussoutier/1220589 to your computer and use it in GitHub Desktop.
;; msoutier's solution to Replicate a Sequence
;; https://4clojure.com/problem/33
(fn [c n] (mapcat #(repeat n %) c))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment