So I would like to know if there's any way to do the following more efficiently:
while(g[0] = 0 || g[0] = 1 || g[0] = 2 || g[0] = 3 || g[0] = 4 || g[0] = 5 || g[0] = 6 || g[0] = 7 || g[0] = 8 || g[0] = 9)
I think in other languages (not sure) there's a keyword called in so it would end up something like this:
while(in.g[0](1, 2, 3, 4, 5, 6, 7, 8, 9))
Is there anyway to compress all my or's into something more compact?