Function cop::change::fix[][src]

pub fn fix<T>(x: T, f: impl Fn(T) -> (Change, T)) -> T

Apply a change function to a value as long as the function reports change.