Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: structurally recursive List.ofFn (#784)
* refactor: structurally recursive List.ofFn This used to be defined via `Array.ofFn` but `Array.ofFn.go` is defined by well-founded recursion (slow to reduce) and used `Array.push` (quadratic complexity on lists). Since mathlib relies on reducing `List.ofFn`, use a structurally recursive definition here. * Update Batteries/Data/List/Basic.lean Co-authored-by: Kim Morrison <kim@tqft.net> * refactor: add ofFnTR --------- Co-authored-by: Kim Morrison <kim@tqft.net> Co-authored-by: Mario Carneiro <di.gama@gmail.com>
- Loading branch information