summaryrefslogtreecommitdiff
path: root/thirdparty/icu4c/common/umath.cpp
diff options
context:
space:
mode:
authorRyan Roden-Corrent <ryan@rcorre.net>2023-01-06 08:21:01 -0500
committerRyan Roden-Corrent <ryan@rcorre.net>2023-01-06 08:21:01 -0500
commit1f6a5e8bb123a3620161ee194175aef571147c30 (patch)
tree208c9f8b945db04f30d8d5b80c795cf0a0edb524 /thirdparty/icu4c/common/umath.cpp
parentb14f7aa9f92ff44135c283a9c88dab5ef9136d64 (diff)
Warn against erasing array elements while iterating.
Erasing array elements while iterating does not appear to be safe. For example, the following prints nothing: ``` var a := [0,1,2,3,4,5,6] for i in a: if i % 2 == 0: a.erase(i) else: print(i) ``` While this is often true for array implementations, it still seems worth documenting explicitly. I copied the wording from Dictionary.xml.
Diffstat (limited to 'thirdparty/icu4c/common/umath.cpp')
0 files changed, 0 insertions, 0 deletions