Skip to content

Table generator

Giorgio Garofalo edited this page Oct 16, 2024 · 4 revisions

The .table function takes a single block argument which is an iterable of tables.
The result of the call is a new table which is the combination, by columns of the supplied tables.

In the following example .repeat is used, which, as other supported loops do, returns the results from each iteration as an iterable.

.table
  .repeat {3}
    n:
    | Column .n |
    |-----------|
    | Cell .n:1 |
    | Cell .n:2 |
    | Cell .n:3 |
Result
Clone this wiki locally