Stop IEnumerable from enumerating through all elements : <p>How do I stop <code>IEnumberable</code> from enumerating through all the elements in the variable in question.
I have a function which I pass an <code>IEnumerable</code> list to, and it will always have only two elements. I however, need the function to only run for the first element, no more, no less. How do I get it to only go through the first element?</p>

<p>Note: Since there are only two elements, I've tried passing them in separately (e.g <code>double</code> <code>double</code>), but it still runs through both.</p>
