Using while-- style iteration on compose