title: Fast way to find min in an Array in Swift
body: <pre><code>let numbers = [1, 6, 3, 9, 4, 6]
  
  let min = minElement(numbers) // 1
  let position = find(array, min)!
  </code></pre>
  
  <p>Is there a better way to find the position of the minor element in an array? A loop search, it's fastest in this case.</p>
  
  <pre><code>min = Int.max
  for (index,value) in enumerate(array){
      if value &lt; min{
          min = value
          position = index
      }
  }
  </code></pre>