Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(defn bits
([]
(concat [1 0] (bits [1 0])))
([prev-bits]
(let [next-bits (butlast prev-bits)]
(lazy-cat next-bits (bits (concat prev-bits next-bits))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.