你好想知道关联数组如何作为返回值传递
代码:
function abc()
begin
int value[string][string];
value = def();
end
function int def()
begin
int new_value[string][string];
//logic to populate the array
return new_value;
end
Run Code Online (Sandbox Code Playgroud)
我看到以下错误:目标的类型是 int。而source的类型是int$[string][string]。
如何处理这个问题并无缝地传递关联数组?