Global Functionfwcd.swift-utils 4.6.2Utils
integerFactor(_:_:)
Finds a nontrivial scale of the given number.
func integerFactor<I>(_ n: I, _ c: I = 1) -> I? where I : ExpressibleByIntegerLiteral, I : Strideable, I : Addable, I : Divisible, I : Magnitudable, I : Multipliable, I : Remainderable, I : Subtractable, I == I.Magnitude, I.Stride : SignedInteger