edit

fun edit(block: RichStringScope.() -> Unit): RichString

Executes the given block on a RichStringScope scoped to this RichString, and returns a completely new RichString carrying the modifications.