title: How to get the position of removed item from ArrayList?
body: <p>I have an ArrayList type of <code>ImagesLoaderItem</code>. I removed the item from ArrayList using the element <code>imagesLoaderItem</code> my question is that I want to get the position of an element that is removed.</p>
  <p>Following is my code</p>
  <pre><code>var loadingImagesList: ArrayList&lt;ImagesLoaderItem&gt; = getAllImages()
  val imagesLoaderItem:ImagesLoaderItem = ...
  selectedImagesList.remove(imagesLoaderItem)
  </code></pre>