SparseArray remove() and delete() what's the difference?
Asked Answered
L

1

7

What is the main difference between calling remove() or delete() on a SparseArray, because they both accept key's as arguments. Thanks.

Leoni answered 16/8, 2015 at 20:41 Comment(0)
G
9

There is no difference. Quoting the documentation for remove():

Alias for delete(int).

In other words, they do the same thing. In the current implementation, remove() calls delete().

Gorton answered 16/8, 2015 at 20:44 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.