[swift-dev] prefix map ambiguous

Kelvin Ma kelvin13ma at gmail.com
Thu Jan 11 21:11:22 CST 2018


when I write sequence.prefix(n).map(f) the compiler complains that .prefix
is ambiguous. If I replace it with [..<n] it works fine. Why is this
happening? I found SR-1856 <https://bugs.swift.org/browse/SR-1856> which
looks like a similar issue but it’s marked fixed.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20180111/c4ac2f3c/attachment.html>


More information about the swift-dev mailing list