table.pl -- SWISH table renderer
Render table-like data.
- term_rendering(+Term, +Vars, +Options)//
- Renders Term as a table. This renderer recognises several
representations of table-like data:
- A list of terms of equal arity
- A list of lists of equal length
- header(+Table, -Header:list(Term), +Options, -RestOptions) is semidet[private]
- Compute the header to use. Fails if a header is specified but does not match.
- header_row(ColNames:list)// is det[private]
- Include a header row if ColNames is not unbound.
- is_list_of_terms(@Term, -Rows, -Cols) is semidet[private]
- Recognises a list of terms with the same functor and non-zero ariry.
- is_list_of_dicts(@Term, -Rows, -ColNames) is semidet[private]
- True when Term is a list of Rows dicts, each holding ColNames as keys.
- is_list_of_lists(@Term, -Rows, -Cols) is semidet[private]
- Recognise a list of lists of equal length.