Function lrp::transitive

source ·
pub fn transitive<T>(seed: T, map: impl Fn(T) -> T) -> T
where T: Clone + PartialEq,
Expand description

For a given f(x), processes x until f(x) = f(f(x)) -> f(f(f(f….f(x)))) = f(x)