be a bit more idiomatic
Use a native int for iterating

it might be a bit faster