Skip to main content

replace

Function replace 

Source
pub fn replace<T: Clone + PartialEq>(
    target: &mut dyn IList<T>,
    original: &T,
    replace_with: T,
)
Expand description

Replaces original with replace_with (ListEx.Replace).

ยงPanics

When original is not in the list (ArgumentException).