//: Playground - noun: a place where people can play
importCocoa varstr ="Hello,playground" enumDirection{ caseNorth caseSouth caseEast caseWest } v1 =Direction.North; varv2:Direction= .South; switchv2{ case.North: println("north"); case.South: "south"); case.East: "east"); case.West: "west"); default: "other"); } enumsequence:Int{ casefirst =1,second,third } v3:sequence=sequencefirst; letv4 =v3.rawValue; println(v4); varv5 =sequence(rawValue:3); v5); |