title: Haskell level 1 question, thanks for answers
body: <p>I am new to Haskell and therefore needs some help which i guess is easy for you guys.
  I am trying to make a function that does the same as using &quot;!!&quot; for indexes, but the indexes should go from 1 to the length of the list.
  This is what i have so far, help function &quot;numberList&quot; and main function &quot;ele&quot;</p>
  <pre><code>numberList :: [a] -&gt; [(a, Int)]
  
  numberList x = zip x [1..10]
  
  ele :: Int -&gt; [a] -&gt; a
  </code></pre>
  <p>End result should look like:</p>
  <p>ele 1 [1,2,3] = 1</p>
  <p>ele 2 [3,4,5,6] = 4</p>
  <p>I have tried some different things with pattern matching, but it doesn't seem to work.
  Where do i go from here?</p>