摘要:
泛型在尖括号里写一个名字来创建一个泛型函数或者类型。func repeat(item: ItemType, times: Int) -> [ItemType] { var result = [ItemType]() for i in 0.. { case None case Some(T)}... 阅读全文
摘要:
//: Playground - noun: a place where people can playimport UIKitvar str = "Hello, playground"var a = 5switch a { case 4: println("yes") default: p... 阅读全文
摘要:
static int P = 11;static int Q = 13;static int N;static int M;static int E;static int D;- (instancetype)init{ self = [super init]; if (self) { N ... 阅读全文