i := max[index](map(numelems,output)); output[i];