2015年1月4日

Scala:Method 小技巧,忽略result type之后的等号

摘要: 1 var x = 0 2 3 def IncreaseOne(): Int = { 4 x += 1 5 x 6 } 7 8 def IncreaseOne() = { 9 x += 110 x11 }12 13 def IncreaseOne = {14 x += 11... 阅读全文

posted @ 2015-01-04 21:49 幸福框架 阅读(707) 评论(0) 推荐(0) 编辑

导航

我要啦免费统计