Documentation

Init.Data.ToString.Basic

class ToString (α : Type u) :
Instances
    instance instToStringId {α : Type u_1} [ToString α] :
    instance instToStringId_1 {α : Type u_1} [ToString α] :
    Equations
    Equations
    Equations
    • instToStringDecidable = { toString := fun (h : Decidable p) => match h with | isTrue h => "true" | isFalse h => "false" }
    def List.toString {α : Type u_1} [ToString α] :
    List αString
    Equations
    Instances For
      instance instToStringList {α : Type u} [ToString α] :
      Equations
      instance instToStringULift {α : Type u} [ToString α] :
      Equations
      Equations
      Equations
      Equations
      instance instToStringFin (n : Nat) :
      Equations
      Equations
      Equations
      Equations
      Instances For
        instance instToStringOption {α : Type u} [ToString α] :
        Equations
        instance instToStringSum {α : Type u} {β : Type v} [ToString α] [ToString β] :
        ToString (α β)
        instance instToStringProd {α : Type u} {β : Type v} [ToString α] [ToString β] :
        ToString (α × β)
        Equations
        instance instToStringSigma {α : Type u} {β : αType v} [ToString α] [(x : α) → ToString (β x)] :
        Equations
        instance instToStringSubtype {α : Type u} {p : αProp} [ToString α] :
        Equations
        Equations
        Instances For
          Equations
          • s.isInt = if s.get 0 = '-' then (s.toSubstring.drop 1).isNat else s.isNat
          Instances For
            Instances For
              instance instToStringExcept {ε : Type u_1} {α : Type u_2} [ToString ε] [ToString α] :
              Equations
              instance instReprExcept {ε : Type u_1} {α : Type u_2} [Repr ε] [Repr α] :
              Repr (Except ε α)