Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/scala/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Function 带=(等号)的Scala方法_Function_Scala_Procedure - Fatal编程技术网

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。