title: Resolve swift array index out of bounds issue
body: <p>I am trying to remember swift array function which will return to me element by index.</p>
  
  <p>Let say I have 7 elements in the swift array, but I am passing index = 10 or 100 to it. Xcode will throw an error with the index out of bounds message.</p>
  
  <p>What I am trying to achieve is trying to iterate array somehow starting from 0.</p>
  
  <p>So in case, I called element with index number 10, the swift array should return for me element with index number 2 assuming that array starts from 0.</p>