[swift-users] Looping through all values between UInt8.min and UInt8.max
Cody Weaver
codyleeweaver at gmail.com
Fri Apr 8 12:47:12 CDT 2016
I think an easy answer if I understand the question right is.
let a: UInt8 = UInt8.min
let b = UInt8 = UInt8.max
for c in a..<b {
print(c)
}
On Fri, Apr 8, 2016 at 10:27 AM Daniel Strobusch via swift-users <
swift-users at swift.org> wrote:
> Hi,
> just as a side note, I filed a bug on this some time ago:
>
> https://bugs.swift.org/browse/SR-1091
>
> so let’s hope, this gets fixed in Swift3. Its really annoying and
> dangerous because the error is not recovered at compile time.
>
> Daniel
> _______________________________________________
> swift-users mailing list
> swift-users at swift.org
> https://lists.swift.org/mailman/listinfo/swift-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160408/4e7c79b6/attachment.html>
More information about the swift-users
mailing list