Algebraic Data Types in Swift

11 thoughts
last posted Feb. 8, 2015, 9:19 p.m.

10 earlier thoughts

0

Swift 1.1 still doesn't support

enum Tree<T>{case Leaf(T); case Node(Tree<T>, Tree<T>)}

despite claims it was just a "bug" preventing it.