Delete items Insert items When inserting items, you actually "insert" a gap and then shrink it at the beginning. If there's already one, just shrink it at the beginning. When deleting items, you actually move (all the items to the right of it) to the left. If there's a gap nearby, use it instead. Direct manipulation of the gap suffices if the (items to be deleted) are adjacent to the existing gap.