Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(defn text-mandel [size a b limit]
(let [[w _ ms] (mandelbrot-seqs 1 size a b limit)
[_ _ _ _ m] (first ms)
s (map (fn [[_ _ i]]
(if (zero? i) " " (str (int (* 9 (/ i limit)))))) m)]
(println
(interpose \newline
(map #(apply str %)
(partition w s))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment