Equations
Instances For
Equations
- Chapter1.unwrap! [x] = x
- Chapter1.unwrap! x✝ = panicWithPosWithDecl "Fad.«Chapter1-Ex»" "Chapter1.unwrap!" 34 10 "unwrap!: empty list"
Instances For
Equations
Instances For
Equations
Instances For
Equations
- Chapter1.reverse₀.helper [] res = res
- Chapter1.reverse₀.helper (x :: xs_1) res = Chapter1.reverse₀.helper xs_1 (x :: res)
Instances For
Equations
Instances For
Equations
- Chapter1.map' f xs = List.foldr (fun (x : α) (xs : List β) => f x :: xs) [] xs
Instances For
@[irreducible]
Equations
- Chapter1.foldr' f e xs = if h : xs.isEmpty = true then e else have this := ⋯; f (xs.head ⋯) (Chapter1.foldr' f e xs.tail)
Instances For
Equations
Instances For
@[irreducible]
Equations
- Chapter1.foldl' f e xs = if h : xs.isEmpty = true then e else have this := ⋯; have h₂ := ⋯; f (Chapter1.foldl' f e (Chapter1.init₁ xs)) (Chapter1.last₁ xs h₂)
Instances For
Equations
Instances For
Equations
- Chapter1.integer.shiftl n d = 10 * n + d
Instances For
Equations
Instances For
Equations
- Chapter1.fraction.shiftr d n = (d.toFloat + n) / 10
Instances For
Equations
- Chapter1.apply 0 x✝ = id
- Chapter1.apply n.succ x✝ = x✝ ∘ Chapter1.apply n x✝
Instances For
Equations
- Chapter1.apply₁ 0 x✝ = id
- Chapter1.apply₁ n.succ x✝ = Chapter1.apply n x✝ ∘ x✝
Instances For
Equations
- Chapter1.remove x [] = []
- Chapter1.remove x (x_1 :: xs_1) = if x = x_1 then xs_1 else x_1 :: Chapter1.remove x xs_1
Instances For
Equations
- Chapter1.steep₀ [] = true
- Chapter1.steep₀ (x :: xs_2) = decide (x > xs_2.sum ∧ Chapter1.steep₀ xs_2 = true)