title: How do I subtract odd index values and add even index values in a list? (a-b+c-d+e)
body: <p>Given a list of integers, I want to subtract all the integers with an odd index and add all the integers with an even index. Is there any compressed way to do this without the regular &quot;while loop with iterator and add/subtract&quot;?</p>