batteries
batteries copied to clipboard
feat: Add `String.length_join` and `List.length_join`
Quick fix for #770.
awaiting-review
Note that Mathlib has https://leanprover-community.github.io/mathlib4_docs/Mathlib/Algebra/BigOperators/List/Basic.html#List.length_join stated in terms of a generic List.sum
instead of Nat.sum
. What's the migration plan?
Given that mathlib already has a List.length_join
, we'll need to have a PR for mathlib that uses this branch of Std ready to go before this can be merged.