Equations
- Chapter2.fib 0 = 1
- Chapter2.fib 1 = 1
- Chapter2.fib n.succ.succ = Chapter2.fib (n + 1) + Chapter2.fib n
Instances For
Equations
Instances For
Equations
Instances For
Equations
- Chapter2.concat₀ [] = []
- Chapter2.concat₀ (xs :: xss) = xs ++ Chapter2.concat₀ xss
Instances For
Equations
- Chapter2.concat₁ [] = []
- Chapter2.concat₁ (xs :: xss_1) = xs ++ Chapter2.concat₁ xss_1
Instances For
Equations
Instances For
Equations
- Chapter2.build.insert p x xs = x :: Chapter1.dropWhile (p x) xs
Instances For
Equations
- Chapter2.iterate 0 x✝¹ x✝ = [x✝]
- Chapter2.iterate n.succ x✝¹ x✝ = x✝ :: Chapter2.iterate n x✝¹ (x✝¹ x✝)
Instances For
Equations
Instances For
Equations
- Chapter2.init₀ [] = panicWithPosWithDecl "Fad.Chapter2" "Chapter2.init₀" 105 13 "no elements"
- Chapter2.init₀ [head] = []
- Chapter2.init₀ (x_1 :: xs) = x_1 :: Chapter2.init₀ xs
Instances For
Equations
- Chapter2.init₂ [] = none
- Chapter2.init₂ [head] = some []
- Chapter2.init₂ (x_1 :: xs) = do let ys ← Chapter2.init₂ xs pure (x_1 :: ys)
Instances For
Equations
- Chapter2.prune p xs = List.foldr (Chapter2.prune.cut p) [] xs
Instances For
Equations
- Chapter2.prune.cut p x xs = Chapter1.until' (Chapter2.prune.done p) Chapter2.init₀ (x :: xs)