Created
June 23, 2021 14:35
-
-
Save gregomni/8842f539e4e70522ab25f0dedde3afa9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extension Range where Bound: Strideable { | |
func stride(by: Bound.Stride) -> StrideTo<Bound> { | |
Swift.stride(from: lowerBound, to: upperBound, by: by) | |
} | |
} | |
extension ClosedRange where Bound: Strideable { | |
func stride(by: Bound.Stride) -> StrideThrough<Bound> { | |
Swift.stride(from: lowerBound, through: upperBound, by: by) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment