lean4-htt/tests
Markus Himmel 167429501b
refactor: redefine String.replace (#10986)
This PR defines `String.Slice.replace` and redefines `String.replace` to
use the `Slice` version.

The new implementation is generic in the pattern, so it supports things
like `"education".replace isVowel "☃!" = "☃!d☃!c☃!t☃!☃!n"`. Since it
uses the `ForwardSearcher` infrastructure, `String` patterns are
searched using KMP, unlike the previous implementation which had
quadratic runtime. As a side effect, the behavior when replacing an
empty string now matches that of most other programming languages,
namely `"abc".replace "" "k" = "kakbkck"`.
2025-10-29 07:48:33 +00:00
..
bench chore: remove >6 month old deprecations (#10968) 2025-10-26 10:01:30 +00:00
compiler fix: use general allocator for closures (#10982) 2025-10-27 10:16:59 +00:00
elabissues
ir
lake feat: zero cost BaseIO (#10625) 2025-10-22 10:55:12 +02:00
lean refactor: redefine String.replace (#10986) 2025-10-29 07:48:33 +00:00
pkg chore: re-enable tests (#10923) 2025-10-23 08:38:57 +00:00
playground
plugin chore: re-enable tests (#10923) 2025-10-23 08:38:57 +00:00
simpperf
.gitignore
common.sh
lakefile.toml
lean-toolchain