Timeline for Checking for emptiness of collections with (in)equalities - what's the best practice?
Current License: CC BY-SA 3.0
2 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 25, 2012 at 12:58 | comment | added | Vilx- | As I commented to @leftaroundabout - naturally, if getting .length is a lengthy operation, or other special conditions apply, then this is the wrong approach altogether. This question was for simple collections where getting length is a O(1) operation. | |
May 25, 2012 at 12:19 | history | answered | Jörg W Mittag | CC BY-SA 3.0 |