Function 带=(等号)的Scala方法
可能重复:Function 带=(等号)的Scala方法,function,scala,procedure,Function,Scala,Procedure,可能重复: 两者之间有什么区别 def x{} 及 def x={} ?def x{}被称为“过程”风格,它是def x:Unit={}(引用Viktor Klang的话)。肯定!谢谢你提供链接,@om-nom-nom。
两者之间有什么区别
def x{}
及
def x={}
?
def x{}
被称为“过程”风格,它是def x:Unit={}
(引用Viktor Klang的话)。肯定!谢谢你提供链接,@om-nom-nom。