Skip to content

Instantly share code, notes, and snippets.

@pepijndevos
Created November 30, 2010 20:33
Show Gist options
  • Save pepijndevos/722349 to your computer and use it in GitHub Desktop.
Save pepijndevos/722349 to your computer and use it in GitHub Desktop.
(ns xmas)
(doseq [line (concat (take 9 (map #(apply str
(take (+ (rem % 3)
(int (/ % 3)))
(repeat "*")))
(range 20)))
(take 2 (repeat "*")))]
(println (format "%1$30s*%1$s" line)))
; *
; ***
; *****
; ***
; *****
; *******
; *****
; *******
; *********
; ***
; ***
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment