【发布时间】:2020-09-09 08:04:43
【问题描述】:
当我尝试在函数中使用 SortA 和 SortD 时:
Define test()=
Func
© Convoluted way of returning [0 1 2 4 5; 4 1 3 5 2]
Local a,b
a:=[1 5 2 0 4]
b:=[1 2 3 4 5]
SortA a,b
Return colAugment(a,b)
EndFunc
我收到错误 Invalid in a function or current expression。我认为这是因为SortA 修改了变量,而这在函数中是不允许的,只能在程序中。有没有办法在函数中以这种方式对列表或矩阵进行排序?
【问题讨论】: