You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The method minLastIndexReportingIsZeroOrMinusOne() is only used once.
/// Returns the last index in reduced two's complement form, along with an/// indicator of whether this value is zero or minus one. In the case where/// this value is zero or minus one, the index is zero.///@inlinablepublicfunc minLastIndexReportingIsZeroOrMinusOne()->(minLastIndex:Int, isZeroOrMinusOne:Bool){letsign=UInt(repeating:self.isLessThanZero)letindex=self.lastIndex(where:{ $0 != sign })return index.map({( $0, false )})??(Int.zero, true)}
In the unsigned case it's almost identical to the following expression:
I'll remove it because it's A) too simple and B) its semantics may not always be what you want. In some unsigned cases you might prefer if zero is considered empty. This becomes much more apparent if you consider methods like minBitWidth().
The text was updated successfully, but these errors were encountered:
The method
minLastIndexReportingIsZeroOrMinusOne()
is only used once.In the unsigned case it's almost identical to the following expression:
I'll remove it because it's A) too simple and B) its semantics may not always be what you want. In some unsigned cases you might prefer if zero is considered empty. This becomes much more apparent if you consider methods like
minBitWidth()
.The text was updated successfully, but these errors were encountered: