Acknowledged
CIQQA-4100

Array.removeAll() does not accept null despite documentation

According to the documentation, Array.removeAll() should accept null as a parameter, although its exact behavior in that case is not specified. One might expect it to remove all entries.

However, the compiler does not accept null as a valid argument. I will attach a screenshot in a follow-up post to illustrate the issue.

Parents
  • I would expect it to remove all instances of null, personally.

    Yes, you are right, that would make sense.

    I was actually looking for a way to clear an array without creating a new instance, since existing references to the array should remain intact. That is why I was hoping that passing null might achieve that.

Comment
  • I would expect it to remove all instances of null, personally.

    Yes, you are right, that would make sense.

    I was actually looking for a way to clear an array without creating a new instance, since existing references to the array should remain intact. That is why I was hoping that passing null might achieve that.

Children
No Data