sameItem method

bool sameItem (
  1. T listA,
  2. int indexA,
  3. T listB,
  4. int indexB
)

Compares the indexA of the listA with the indexB of the listB and returns true is they are the same item. Usually, the "id" of the item is compared here.

Implementation

bool sameItem(T listA, int indexA, T listB, int indexB);