# Pascals Triangle in Elixir

#### Compute Pascal's triangle up to a given number of rows.

1 | ```
exercism fetch elixir pascals-triangle
``` |

# Pascal's Triangle

Compute Pascal's triangle up to a given number of rows.

In Pascal's Triangle each number is computed by adding the numbers to the right and left of the current position in the previous row.

## Running tests

Execute the tests with:

1 |
```
$ elixir pascals_triangle_test.exs
``` |

### Pending tests

In the test suites, all but the first test have been skipped.

Once you get a test passing, you can unskip the next one by
commenting out the relevant `@tag :pending`

with a `#`

symbol.

For example:

Or, you can enable all the tests by commenting out the
`ExUnit.configure`

line in the test suite.

1 |
```
# ExUnit.configure exclude: :pending, trace: true
``` |

For more detailed information about the Elixir track, please see the help page.

## Source

Pascal's Triangle at Wolfram Math World http://mathworld.wolfram.com/PascalsTriangle.html

## Submitting Incomplete Solutions

It's possible to submit an incomplete solution so you can see how others have completed the exercise.