Looking for an elegant way of doing the following:
I have a list that will consist of variable number of integers. The
values of the integers will only be 0 or 1. There will only be one
occurrence of the 1 integer; all the rest will be 0.
I want to know at which position in the list the 1 occurs.
Right now, I am using a combination of iter, select, and counter, but
it seems clunkier than it needs to be. Is there another object that
will make this easier?