[swift-evolution] Proposal: Add replace(_:with:) function to the stdlib

Martin Kühl martin.kuehl at gmail.com
Mon Dec 14 09:32:36 CST 2015


On 14 December 2015 at 09:30, Kevin Ballard via swift-evolution
<swift-evolution at swift.org> wrote:
>
> I'll grant you that it's uncommon to have functions with both side-effects and return values, but it's certainly not unheard-of. Heck, that's how Generators work!

It’s also how all mutating funcs on Dictionary behave.

-Martin


More information about the swift-evolution mailing list