last indexed element from generator