Hi,
But takeAt -> Removes the item at index position i and returns it.
and take -> Takes the current item out of the list without deleting it
Then how can I use it?
![]()
Hi,
But takeAt -> Removes the item at index position i and returns it.
and take -> Takes the current item out of the list without deleting it
Then how can I use it?
![]()
But takeAt doesn't delete it either. Just removes it from the list and returns it.
You said it yourself when you said
It returns the item therefore it doesn't delete it. Just use the returned item and your problem should be solved for the takeAt function.But takeAt -> Removes the item at index position i and returns it.
Bookmarks