diff --git a/Sources/DataStructures/Stack.swift b/Sources/DataStructures/Stack.swift index e67fc77..bf25f8a 100644 --- a/Sources/DataStructures/Stack.swift +++ b/Sources/DataStructures/Stack.swift @@ -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