swift-cardinal

main

Cardinal types for Swift — non-negative counts with policy-aware arithmetic and phantom-tagged variants.
swift-atoms/swift-cardinal

swift-cardinal

Optional integrations

Core counts, comparison, literals, range bounds, and checked addition are available without optional dependencies. Enable Tagged for the domain-tagged carrier, property, arithmetic-adapter, and storage integrations. Algebra independently enables the monoid integration. Optional integrations are opt-in; no traits are enabled by default.

Description

  • Swift Tools 6.4.0
View More Packages from this Author

Dependencies

Last updated: Fri Oct 23 2026 07:14:45 GMT-0900 (Hawaii-Aleutian Daylight Time)