SortedArray
public struct SortedArray <Element: Comparable>:
    RandomAccessCollectionWrapping,
    SortedCollectionWrappingextension SortedArray: Equatableextension SortedArray: Additiveextension SortedArray: Monoidextension SortedArray: ExpressibleByArrayLiteralextension SortedArray: Hashable where Element: HashableArray that keeps itself sorted.
- 
                  
                  Underlying storage of elements contained herein. DeclarationSwift public var base: [Element]
- 
                  
                  Create an empty SortedArray.DeclarationSwift public init()
- 
                  
                  Creates an empty SortedArraytype with preallocated space for at least the specified number of elements.DeclarationSwift public init(minimumCapacity: Int)
- 
                  
                  Create a SortedArraywith the given sequence ofelements.DeclarationSwift public init<S>(_ elements: S) where Element == S.Element, S : Sequence
- 
                  
                  Create a SortedArraywith the given collection of presorted elements.Warning You must be certain thatpresortedis sorted, otherwise undefined behavior is certain.DeclarationSwift public init<C>(presorted: C) where Element == C.Element, C : Collection
- 
                  
                  Create a SortedArraywith the given array of presorted elements.Warning You must be certain thatpresortedis sorted, otherwise undefined behavior is certain.DeclarationSwift public init(presorted: [Element])
- 
                  
                  Creates a SortedArraywith the contents of another one.DeclarationSwift public init(_ sorted: SortedArray)
- 
                  
                  Remove the given element, if it is contained herein.Todo Makethrowsinstead of returning silently.DeclarationSwift public mutating func remove(_ element: Element)
- 
                  
                  Insert the given element.Complexity O(n)DeclarationSwift public mutating func insert(_ element: Element)
- 
                  
                  Insert the contents of another sequence of T.DeclarationSwift public mutating func insert<S>(contentsOf elements: S) where Element == S.Element, S : Sequence
- 
                  
                  Reserves the amount of memory to store the given minimumCapacityof elements.DeclarationSwift public mutating func reserveCapacity(_ minimumCapacity: Int)
- 
                  
                  Appends the given element.Warning This element must be greater or equal to the current maximum, otherwise there will be undefined behavior ahead.DeclarationSwift public mutating func append(guaranteedMax element: Element)
- 
                  
                  DeclarationSwift public func index(of element: Element) -> Int?Return ValueIndex for the given element, if it exists. Otherwise,nil.
- 
                  
                  DeclarationSwift public subscript(bounds: Range<Base.Index>) -> Slice<Base> { get }Return ValueThe slice of the SortedArrayfor the givenbounds.
- 
                  
                  DeclarationSwift public static var zero: SortedArray { get }Return ValueEmpty SortedArray.
- 
                  
                  DeclarationSwift public static func + <T>(lhs: SortedArray<T>, rhs: SortedArray<T>) -> SortedArray<T> where T : ComparableReturn ValueSortedArraywith the contents of twoSortedArrayvalues.
- 
                  
                  DeclarationSwift public static var identity: SortedArray<Element> { get }Return ValueEmpty SortedArray.
- 
                  
                  DeclarationSwift public static func <> (lhs: SortedArray<Element>, rhs: SortedArray<Element>) -> SortedArray<Element>Return ValueComposition of two of the same Semigrouptype values.
- 
                  
                  DeclarationSwift public init(arrayLiteral elements: Element...)Return ValueCreate a SortedArraywith an array literal.
 View on GitHub
            View on GitHub
           Install in Dash
            Install in Dash
           SortedArray Structure Reference
      SortedArray Structure Reference