DigitIterator

public struct DigitIterator<Digit>: IteratorProtocol

State for iterating through the digits of a big integer.

  • Return the next digit in the integer, or nil if there are no more digits. Returned digits range from least to most significant.

    Declaration

    Swift

    public mutating func next() -> Digit?