[swift-users] Incorrect Fisher-Yates shuffle in example code
Dave Abrahams
dabrahams at apple.com
Sun Dec 17 18:37:48 CST 2017
> On Dec 16, 2017, at 4:34 PM, Nevin Brackett-Rozinsky via swift-users <swift-users at swift.org> wrote:
>
> public extension MutableCollection where Self: RandomAccessCollection, IndexDistance == Int {
>
IndexDistance == Int is an over-constraint, FWIW. Adding it is generally a mistake. Not a serious one, but it does limit utility somewhat.
HTH,
Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20171217/6a1f1e63/attachment.html>
More information about the swift-users
mailing list