SwiftDataStructures Docs (35% documented)

SwiftDataStructures Reference Functions Reference

Functions

The following functions are available globally.

  • Concat. *

    Declaration

    Swift

    public func + <T> (var lhs:Set<T>, rhs:Set<T>) -> Set<T> {
        lh
  • Extend (in-place). Extends set with the elements of sequence.

    Declaration

    Swift

    public func += <S: SequenceType> (inout set: Set<S.Generator.Element>, sequence: S) {
        se
  • Set difference. Returns a new set with all elements from set which are not contained in other.

    Declaration

    Swift

    public func - <T> (set: Set<T>, other: Set<T>) -> Set<T> {
        re
  • Removes all elements in other from set.

    Declaration

    Swift

    public func -= <T> (inout set: Set<T>, other: Set<T>) {
        fo
  • Intersection (in-place). Intersects with set with other.

    Declaration

    Swift

    public func &= <T> (inout set: Set<T>, other: Set<T>) {
        fo
  • Returns the intersection of set and other.

    Declaration

    Swift

    public func & <T> (set: Set<T>, other: Set<T>) -> Set<T> {
        re
  • Defines equality for sets of equatable elements.

    Declaration

    Swift

    public func == <T: Equatable> (a: Set<T>, b: Set<T>) -> Bool {
        re
  • Allows equality testing of an OrderedDictionaryElement<K, V> and a tuple (K, V).

    Declaration

    Swift

    public func == <K: Hashable, V: Equatable> (lhs: OrderedDictionary<K, V>.Element, rhs: (K, V)) -> Bool
  • Allows equality testing between two OrderedDictionaryElement<K, V>s.

    Declaration

    Swift

    public func == <K: Hashable, V: Equatable> (lhs: OrderedDictionary<K, V>.Element, rhs: OrderedDictionary<K, V>.Element) -> Bool
  • Allows equality testing between two optional OrderedDictionaryElement<K, V>s.

    Declaration

    Swift

    public func == <K: Hashable, V: Equatable> (lhs: OrderedDictionary<K, V>.Element?, rhs: OrderedDictionary<K, V>.Element?) -> Bool