3 ms·
The length/count property was added after people asked for it, but it wasn't originally in the String revamp, and it provides iterators for all of the above. .c
by astrange 3y ago
The length/count property was added after people asked for it, but it wasn't originally in the String revamp, and it provides iterators for all of the above. .count also only claims to be O(n) to discourage using it.
- b3morales 3y agoThat was almost seven years ago now. It has been the String API twice as long as it has not been the API.