Skip to content

Commit

Permalink
Conform Stack to CustomStringConvertible (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbean committed Aug 14, 2019
1 parent 7503185 commit d2f9eaa
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Sources/DataStructures/Stack.swift
Expand Up @@ -134,6 +134,16 @@ extension Stack: ExpressibleByArrayLiteral {
}
}

extension Stack: CustomStringConvertible {

// MARK: - CustomStringConvertible

/// - Returns: The printed description of this `Stack`.
public var description: String {
return elements.description
}
}

extension Stack: Additive {

// MARK: - Additive
Expand Down

0 comments on commit d2f9eaa

Please sign in to comment.