The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V01. The language of Mathlib

Mathlib.Util.FormatTable

12 declarations. Mathlib docs · Source

def instInhabitedAlignment.default E1 #

Alignment

def Alignment.ctorIdx E1 #

Alignment → ℕ

abbrev Alignment.ctorElimType E1 #

{motive : Alignment → Sort u} → ℕ → Sort (max 1 u)

inductive Alignment E1 #

Type

Possible alignment modes for each table item: left-aligned, right-aligned and centered.

ctor Alignment.left E0 #

Alignment

ctor Alignment.right E0 #

Alignment

ctor Alignment.center E0 #

Alignment

instance instBEqAlignment E0 #

BEq Alignment

def instBEqAlignment.beq E1 #

Alignment → Alignment → Bool

instance instInhabitedAlignment E0 #

Inhabited Alignment

def String.justify E1 #

String → Alignment → ℕ → String

Align a String s to the left, right, or center within a field of width width.

def formatTable E1 #

Array String → Array (Array String) → optParam (Option (Array Alignment)) none → String

Render a two-dimensional array of Strings into a markdown-compliant table. headers is a list of column headers, table is a 2D array of cell contents, alignments describes how to align each table column (default: left-aligned).