How do I pass a vector to a function?
Something that, in the Moon, would be like this:
vector = {"V", "e", "t", "o", "r"}
function getVector(vector, pos)
return vector[pos]
end
print(getVector(vector, 1))
Output: "V"
I tried this way:...
asked by
16.12.2014 / 00:35