Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Add String.replace #289

@ndmitchell

Description

@ndmitchell

It would be useful to have a replace function, with the semantics replace "ab" "foo" "testabab" == "testfoofoo". Such a function exists in text and extra, both named replace. Writing such a function on top of foundation is possible (just use list, extra.replace, back again) - but not very performant. For extra performance, you may wish to optimise the common case when the from string is a single ASCII char.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions