Skip to content

Instantly share code, notes, and snippets.

@jaydonnell
Created November 27, 2013 22:16
Show Gist options
  • Save jaydonnell/7684132 to your computer and use it in GitHub Desktop.
Save jaydonnell/7684132 to your computer and use it in GitHub Desktop.
(defn mergeListPairs [xs]
(loop [xss xs]
(cond
(= (count xss) 1) (first xss)
:else (let [[xs1 xs2 & xssRest] xss]
(recur (conj xssRest (myMerge xs1 xs2)))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment