oscbyspro / Ultimathnum

Binary arithmetic reimagined in Swift
Apache License 2.0
4 stars 1 forks source link

DataInt/isNormal #13

Closed oscbyspro closed 3 weeks ago

oscbyspro commented 4 weeks ago

I might as well add a normalization check since I'm on Bool train (#12) already. It is common to normalize data integer types, and it's about as common to assert that data integers are normalized. The former is a core data integer method, so the latter should probably be one too.

extension [Mutable]DataInt[.Body] {

    /// Indicates whether the `body` is free of `appendix` extensions.
    @inlinable public var isNormal: Bool { ... }
}