Recall from previous articles that Scala treats functions as values, just as it does any other value in the language, like Int, Float, or Double.
回忆前几期文章,Scala将函数作为值处理,就像处理语言中的其他值一样,例如Int、Float或Double。
When you think about an int or a float or a dictionary or a list, you knew that there were functions that operated on them.
当你想到整型,浮点型,或者链表时,你知道可以用函数去处理他们,但是当你传递一个参数,例如链表。
So this is something that we would call an integer, or an INT. And this is something we would call a floating point, or a float.
这是我们称之为integer的类型,或者INT,这是我们,称为浮点数的类型,或者浮点。
应用推荐