Example
Count right-and-down grid paths by adding top and left cells.
highlighted = computed this step
Step 1 — Grid cell
Compute the highlighted combinatorics value.
cell, inputs, paths((0, 0), (start), 1)
Step 2 — Grid cell
Compute the highlighted combinatorics value.
cell, inputs, paths((0, 1), ((0, 0), 1), 1)
Step 3 — Grid cell
Compute the highlighted combinatorics value.
cell, inputs, paths((0, 2), ((0, 1), 1), 1)
Step 4 — Grid cell
Compute the highlighted combinatorics value.
cell, inputs, paths((1, 0), ((0, 0), 1), 1)
Step 5 — Grid cell
Compute the highlighted combinatorics value.
cell, inputs, paths((1, 1), ((0, 1), 1, (1, 0), 1), 2)
Step 6 — Grid cell
Compute the highlighted combinatorics value.
cell, inputs, paths((1, 2), ((0, 2), 1, (1, 1), 2), 3)
Step 7 — Grid cell
Compute the highlighted combinatorics value.
cell, inputs, paths((2, 0), ((1, 0), 1), 1)
Step 8 — Grid cell
Compute the highlighted combinatorics value.
cell, inputs, paths((2, 1), ((1, 1), 2, (2, 0), 1), 3)
Step 9 — Grid cell
Compute the highlighted combinatorics value.
cell, inputs, paths((2, 2), ((1, 2), 3, (2, 1), 3), 6)
combinatorics-search
Every row is intentionally ordered and pinned to the lesson specification.