title: Finding an index of a max value of a list in F#
body: <p>I'm trying to write a function that takes a list for example</p>
  
  <pre><code>let list = [5;23;29;1] 
  let x = max list // This will return 2 because 29 will be the max value and it's "indexed" at position 2
  </code></pre>
  
  <p>I'm not sure about how to go about writing the <code>max</code> function</p>
  
  <p>Since my list will only contain four elements I currently have some code like this</p>
  
  <pre><code>let list = (1, newMap1 |&gt; getScore) :: (2, newMap2 |&gt; getScore) :: (3, newMap3 |&gt; getScore) :: (4, newMap4 |&gt; getScore) :: []
  </code></pre>
  
  <p>I consider this a terrible approach but I'm still stuck on how to return <code>(x, _)</code> after I find the max of <code>(_, y)</code>. I'm very confident with imperative approaches but  I'm stumped on how to do this functionally</p>