diff --git a/prototype/Doubt/Vertex.swift b/prototype/Doubt/Vertex.swift index 094a08490..701c19f47 100644 --- a/prototype/Doubt/Vertex.swift +++ b/prototype/Doubt/Vertex.swift @@ -1,4 +1,4 @@ -public enum Vertex { +public enum Vertex: CustomDebugStringConvertible { indirect case XY(Element, Memo, Memo) case End @@ -88,4 +88,11 @@ public enum Vertex { return .End } } + + + public var debugDescription: String { + return rowMajor.map { + $0.map { String(reflecting: $0) }.joinWithSeparator("\t") + }.joinWithSeparator("\n") + } }