SwiftDataStructures Docs (35% documented)

SwiftDataStructures Reference Set Extension Reference

Set

A set of unique elements as determined by hashValue and ==.

  • In theory, reserve capacity for n elements. However, Dictionary does not implement reserveCapacity(), so we just silently ignore it.

    Declaration

    Swift

    public func reserveCapacity(n: Set<T>.Index.Distance) {}
  • Inserts each element of sequence into the receiver.

    Declaration

    Swift

    public mutating func extend<S: SequenceType where S.Generator.Element == T>(sequence: S)
  • Appends element onto the Set.

    Declaration

    Swift

    public mutating func append(element: T)