I would like to get the first item from a list matching a condition. It\'s important that the resulting method not process the entire list, which could be quite large. For e
I would write this
next(x for x in xrange(10) if x > 3)