好像Android中回调啊
private CallBack callback;
if(callback != null){
callback.void();
}
private CallBack callback;
if(callback != null){
callback.void();
}
2017-03-17
"func topOne<T: Comparable>(seq: T) -> T" 里面的"seq.count"和"seq.reduce"报错:"Value of type 'T' has no member 'count' "
已采纳回答 / hdadan
precedencegroup ComparativePrecedence{ //定义运算符优先级 associativity: right higherThan: LogicalConjunctionPrecedence}infix operator ** : ComparativePrecedencefunc **(x: Double, p:Double) -> Double{ return pow(x,p)}
2017-03-11