Documentation

Lean.Data.LOption

inductive Lean.LOption (α : Type u) :
Type u
instance Lean.instInhabitedLOption :
{a : Type u_1} → Inhabited (Lean.LOption a)
Equations
  • Lean.instInhabitedLOption = { default := Lean.LOption.none }
instance Lean.instBEqLOption :
{α : Type u_1} → [inst : BEq α] → BEq (Lean.LOption α)
Equations
  • Lean.instBEqLOption = { beq := [anonymous] }
instance Lean.instToStringLOption {α : Type u_1} [inst : ToString α] :
Equations
  • Lean.instToStringLOption = { toString := fun x => match x with | Lean.LOption.none => "none" | Lean.LOption.undef => "undef" | Lean.LOption.some a => "(some " ++ toString a ++ ")" }
def Option.toLOption {α : Type u} :
Equations
@[inline]
def toLOptionM {α : Type} {m : TypeType} [inst : Monad m] (x : m (Option α)) :
Equations