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")