摘要: func repeatItem(item:Item, numberOfTimes:Int) -> [Item]{ var result = [Item]() for _ in 0..<numberOfTimes{ result.append(item) } return result}... 阅读全文
posted @ 2015-12-07 23:20 以神之名 阅读(333) 评论(0) 推荐(0) 编辑
摘要: protocol ExampleProtocol{ var simpleDescription:String{get} mutating func adjust()}class SimpleClass:ExampleProtocol{ var simpleDescription:String ... 阅读全文
posted @ 2015-12-07 22:41 以神之名 阅读(523) 评论(0) 推荐(0) 编辑