The Sol Programming Language!
您最多能選擇 25 個主題 主題必須以字母或數字為開頭,可包含連接號 ('-') 且最長為 35 個字。
 
 
 
 
 
 

16 行
322 B

execfile("tests/_lib.sol")
func rec_tostring(v)
return for i in v do
continue if type(i) == "list" then
rec_tostring(i)
else
tostring(i)
end
end
end
l = [ [1, 2, 3], [4, 5, 6], [7, 8, 9] ]
q = [ ["1", "2", "3"], ["4", "5", "6"], ["7", "8", "9"] ]
assert_eq(rec_tostring(l), q, "nested continue-map fors")