title: Most efficient way of finding the next element in a tuple
body: <p>I've got a system in which I often (but not constantly) have to find the next item in a tuple. I'm currently doing this like so:</p>
  
  <pre><code>mytuple = (2,6,4,8,7,9,14,3)
  currentelement = 4
  def f(mytuple, currentelement):
      return mytuple[mytuple.index(currentelement) + 1]
  nextelement = f(mytuple, currentelement)
  </code></pre>
  
  <p>All elements are unique and I am not stuck with the tuple, I can make it something else earlier in the program if needed.</p>
  
  <p>Since I need to do this <strong>a lot</strong>, I was wondering whether there is any more efficient way to do this?</p>