scala学习笔记:无参函数
摘要:
scala> def repeat(times:Int)(run:()=>Unit)=for(i Unit)Unitscala> repeat(2){println("haha~~~")}:9: error: type mismatch; found : Unit require... 阅读全文
posted @ 2015-02-12 17:50 白乔 阅读(417) 评论(0) 推荐(0)
posted @ 2015-02-12 17:50 白乔 阅读(417) 评论(0) 推荐(0)
posted @ 2015-02-12 17:31 白乔 阅读(206) 评论(0) 推荐(0)
posted @ 2015-02-12 11:20 白乔 阅读(137) 评论(0) 推荐(0)