[swift-users] ranges and min

J.E. Schotsman jeschot at xs4all.nl
Mon Jan 23 08:58:57 CST 2017


This doesn’t compile:

let data1 = Data(count:4)
let data2 = Data(count:5)
for i in 0..<min( data1.count, data2.count ) {..} // ! “extra argument in call"

I have to write

for i in 0..<Swift.min

Compiler bug?

Jan E.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20170123/f5d2b5f9/attachment.html>


More information about the swift-users mailing list