Skip to content

Releases: wltrup/Swift-WTUniquePrimitiveType

Type-safe counts, array indices, and array subscripting

07 Jun 09:57
Compare
Choose a tag to compare
  • Added the ability for any UniqueIntegerType-conforming type to initialise itself with an Int and to retrieve the underlying value as an Int. The result for either operation is nil when the operation can't be performed.

  • Added TypesafeIntegerIndexType.

  • Added TypesafeCountType.

  • Added support for returning TypesafeCountType instances when querying the size of an Array, Set, or Dictionary.

  • Added support for Array subscripting using TypesafeIntegerIndexType instances.

  • Added missing support for hashing a Dictionary.

  • Streamlined and made the code more homogeneous between the various protocols and their extensions, for ease of reading and understanding.

Support for boolean operators

05 Jun 19:58
Compare
Choose a tag to compare

This release adds automatic support for !, &&, and || operators to any type conforming to UniqueBooleanType.

Initial release

05 Jun 19:59
Compare
Choose a tag to compare