0
我想在一个函数中创建一个数组并将其作为参数传递给另一个函数,该函数将从该函数调用。我怎样才能做到这一点?下面是伪代码:如何定义一个将数组作为参数的LISP函数?
define FuncA (Array Q){
<whatever>
}
define FuncB (n){
make-array myArray = {0,0,....0}; <initialise an array of n elements with zeroes>
FuncA(myArray); <call FuncA from FuncB with myArray as an argument>
}
假如你尝试过的东西,建议你需要做一些特定的事情来接受一个数组? – 2014-10-29 10:17:18