- none: {α : Type u} → Lean.LOption α
- some: {α : Type u} → α → Lean.LOption α
- undef: {α : Type u} → Lean.LOption α
Equations
- Lean.instInhabitedLOption = { default := Lean.LOption.none }
Equations
- Lean.instBEqLOption = { beq := [anonymous] }
Equations
- Lean.instToStringLOption = { toString := fun x => match x with | Lean.LOption.none => "none" | Lean.LOption.undef => "undef" | Lean.LOption.some a => "(some " ++ toString a ++ ")" }
Equations
- Option.toLOption x = match x with | none => Lean.LOption.none | some a => Lean.LOption.some a
@[inline]
def
toLOptionM
{α : Type}
{m : Type → Type}
[inst : Monad m]
(x : m (Option α))
:
m (Lean.LOption α)
Equations
- toLOptionM x = do let b ← x pure (Option.toLOption b)