MutableCollection

protocol MutableCollection : Collection where Self.SubSequence : MutableCollection
  • Mechanica

    Shuffles the collection contents using the Fisher-Yates (fast an uniform) algorithm.

    Declaration

    Swift

    public mutating func shuffle()
  • Mechanica

    Returns a new collection with all the elements shuffled using the Fisher-Yates (fast an uniform) algorithm.

    Declaration

    Swift

    public func shuffled() -> Self