Skip to content

1.1 - Initialization protocols

Compare
Choose a tag to compare
@KyNorthstar KyNorthstar released this 08 Jun 18:37
· 4 commits to production since this release
0b3bc35

This adds some more protocols to improve generic usage of ranges:

  • RangeWhichCanBeInitializedWithOnlyLowerBound: Any range which can be initialized only with a lower bound, like a...
  • RangeWhichCanBeInitializedWithOnlyUpperBound: Any range which can be initialized only with an upper bound, like ..<b or ...b
  • RangeWhichCanBeInitializedWithBothLowerAndUpperBounds: Any range which can be initialized with both lower and upper bounds, like a..<b or a...b