Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个这样的函数签名:
def countChange(money: Int, coins: List[Int]): Int = {
并且需要使用如下参数调用函数:money = 4, coin = [1,2]
?
答案就在表面上:
countChange(4, List(1,2))
不要认为这是一种冒犯,但也许你应该阅读一些关于 Scala 的基本教程?