Skip to content

Instantly share code, notes, and snippets.

@martintrojer
Created March 25, 2012 15:21
Show Gist options
  • Select an option

  • Save martintrojer/2197246 to your computer and use it in GitHub Desktop.

Select an option

Save martintrojer/2197246 to your computer and use it in GitHub Desktop.
Pascal's Trapezoid
(defn pascals-trapezoid [v]
(iterate #(map + `(0 ~@%) `(~@% 0)) v))
(take 10 (pascals-trapezoid [1]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment