<div dir="ltr">when I write <span style="font-family:monospace,monospace">sequence.prefix(n).map(f)</span> the compiler complains that <span style="font-family:monospace,monospace">.prefix</span> is ambiguous. If I replace it with <span style="font-family:monospace,monospace">[..&lt;n]</span> it works fine. Why is this happening? I found <a href="https://bugs.swift.org/browse/SR-1856">SR-1856</a> which looks like a similar issue but it’s marked fixed.<br></div>