当我尝试调试可执行文件时:
(gdb) break +1
No symbol table is loaded. Use the "file" command.
Run Code Online (Sandbox Code Playgroud)
这究竟是什么意思?
符号表是否附加到可执行文件?
对于以下问题:http://pastie.org/4825115,这是我的代码:http://pastie.org/private/n22zohyshn2ymqrbrb3g
def randList(len: Int, n: Int): List[Int] = len match {
case 0 => List()
case len => scala.util.Random.nextInt(n) :: randList(len-1, n)
}
Run Code Online (Sandbox Code Playgroud)
但我不知道为什么randList被称为闭包.