replace

open fun replace(old: N, replacement: N): Boolean(source)

Replaces the first node that is equal to "old" with "replacement".

Return

true if a replacement has happened.