Stack

public struct Stack<T>

TODO: Documentation

  • TODO: Documentation

    Declaration

    Swift

    public init(values: T...)
  • TODO: Documentation

    Declaration

    Swift

    public var isEmpty: Bool { get }
  • TODO: Documentation

    Declaration

    Swift

    public var count: Int { get }
  • TODO: Documentation

    Declaration

    Swift

    @discardableResult
    public mutating func push(_ element: T) -> Stack<T>
  • TODO: Documentation

    Declaration

    Swift

    @discardableResult
    public mutating func pop(to count: Int? = nil) -> T?
  • TODO: Documentation

    Declaration

    Swift

    public func peek(at index: Int) -> T?
  • top

    TODO: Documentation

    Declaration

    Swift

    public var top: T? { get }
  • TODO: Documentation

    Declaration

    Swift

    public func fromTop(index: Int) -> T?
  • Declaration

    Swift

    public var description: String { get }
  • Declaration

    Swift

    public var debugDescription: String { get }