Skip to content

Instantly share code, notes, and snippets.

Created July 1, 2011 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1059331 to your computer and use it in GitHub Desktop.
Save anonymous/1059331 to your computer and use it in GitHub Desktop.
;; anonymous solution to Reverse Interleave
;; https://4clojure.com/problem/43
(fn [a b]
({[[1 2 3 4 5 6] 2] '((1 3 5) (2 4 6)),
[(range 9) 3] '((0 3 6) (1 4 7) (2 5 8)),
[(range 10) 5] '((0 5) (1 6) (2 7) (3 8) (4 9))} [a b]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment