Return the next composition.
If there is no next composition or the first element is -1, then the result is -1 everywhere. This means that the “iterator” is exhausted.