1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00

🔥 Tree.

This commit is contained in:
Rob Rix 2015-09-15 14:17:40 -04:00
parent bf10dfca2d
commit 5f464f3e10
2 changed files with 0 additions and 17 deletions

View File

@ -7,7 +7,6 @@
objects = {
/* Begin PBXBuildFile section */
D405389E1BA8833B00A5DD59 /* Tree.swift in Sources */ = {isa = PBXBuildFile; fileRef = D405389D1BA8833B00A5DD59 /* Tree.swift */; };
D4AAE50E1B5AE22E004E581F /* Doubt.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D4AAE4FD1B5AE22E004E581F /* Doubt.framework */; };
D4AAE5131B5AE22E004E581F /* DoubtTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4AAE5121B5AE22E004E581F /* DoubtTests.swift */; };
D4AAE5401B5AE2D0004E581F /* Array.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4AAE5351B5AE2D0004E581F /* Array.swift */; };
@ -34,7 +33,6 @@
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
D405389D1BA8833B00A5DD59 /* Tree.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Tree.swift; sourceTree = "<group>"; };
D443F4D61BA3157700049A57 /* Doubt.playground */ = {isa = PBXFileReference; lastKnownFileType = file.playground; path = Doubt.playground; sourceTree = "<group>"; };
D4AAE4FD1B5AE22E004E581F /* Doubt.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Doubt.framework; sourceTree = BUILT_PRODUCTS_DIR; };
D4AAE5011B5AE22E004E581F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
@ -106,7 +104,6 @@
D4AAE53E1B5AE2D0004E581F /* StringLiteralConvertible.swift */,
D4AAE53F1B5AE2D0004E581F /* Syntax.swift */,
D4AAE54B1B5AE42D004E581F /* Equatable.swift */,
D405389D1BA8833B00A5DD59 /* Tree.swift */,
D4AAE5001B5AE22E004E581F /* Supporting Files */,
);
path = Doubt;
@ -241,7 +238,6 @@
D4AAE5481B5AE2D0004E581F /* String.swift in Sources */,
D4AAE5411B5AE2D0004E581F /* Diff.swift in Sources */,
D4AAE5401B5AE2D0004E581F /* Array.swift in Sources */,
D405389E1BA8833B00A5DD59 /* Tree.swift in Sources */,
D4AAE54C1B5AE42D004E581F /* Equatable.swift in Sources */,
D4AAE54A1B5AE2D0004E581F /* Syntax.swift in Sources */,
D4AAE5421B5AE2D0004E581F /* Doc.swift in Sources */,

View File

@ -1,13 +0,0 @@
public enum Tree<A>: CustomStringConvertible {
case Leaf(A)
case Branch([Tree])
public var description: String {
switch self {
case let .Leaf(value):
return String(value)
case let .Branch(children):
return "(" + children.lazy.map { String($0) }.joinWithSeparator(" ") + ")"
}
}
}