replaceScheme

fun replaceScheme(oldScheme: Scheme, newScheme: Scheme?)(source)

Replaces oldScheme with newScheme in-place.

If newScheme is null, then oldScheme is removed without being replaced.