I am trying to read nested array as follows but getting an error.
var inputArray = [1,[4,3],6,[5,[1,0]]]
func nestedArray(inputArray :[Any])
{
}
error: heterogeneous collection literal could only be inferred to '[Any]'; add explicit type annotation if this is intentional var inputArray = [1,[4,3],6,[5,[1,0]]]