Skip to content

Instantly share code, notes, and snippets.

@ckirkendall
Created July 11, 2012 22:56
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 ckirkendall/3094317 to your computer and use it in GitHub Desktop.
Save ckirkendall/3094317 to your computer and use it in GitHub Desktop.
(defn cxy ([s] (cxy s 0 0))
([[c & s] x y]
(cond
(nil? c) ()
(= c \newline) (recur s 0 (inc y))
:else (conj (cxy s (inc x) y) [c x y]))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment