What would this line of code be in AS?


in the algorithm section:

 while item == array[pos]:
      pos += 1
    array[pos], item = item, array[pos]
    writes += 1

array[pos], item = item, array[pos]

thanks