2015-10: Blaise'ing a Trail

The Uiua expression to compute Pascal's triangle of order n is fairly simple

⍚(≡⧅<⇡⊸+1)⇡11

However, the output leaves something to be desired. Write code that takes an integer argument representing the order of the Pascal's triangle to be created and returns a "nicely" formatted character matrix. Because we're using a mono-spaced font and can only format whole character positions, lines do not have to be perfectly centered and may vary by a character position.

Examples

Implementation

You can also run the tests via ⌘/shift + enter