3 ms·
Because for the purposes of example, it doesn't matter what the data actually is.
by s73ver_ 9y ago
Because for the purposes of example, it doesn't matter what the data actually is.
- hinkley 9y agoI'll bet you a six pack that hasName is called in a tight loop somewhere. The cost of generating the collection on every call is far greater than the cost of iterating it was. Can we at least agree that the chosen example has too many other confounding factors in it?