there are no function to get the index of the first occurence of a value in a list? With this, you can iterat ONLY on this part of the list of commit