【发布时间】:2016-10-24 13:14:21
【问题描述】:
可以帮助我理解这里使用或可能使用的代码和运算符类型
def times [A](f: =>A): Unit={
def loop(current: Int): Unit=
if(current > 0){
f
loop(current - 1)
}
loop(x)
}
【问题讨论】:
-
这不是操作员。搜索“按名称参数”。
标签: scala