3 ms·
People get in the habit of writing loops with indices.
by zeckalpha 11y ago
People get in the habit of writing loops with indices.
- meddlepal 11y agoI still people doing that shit in Java 8 and Groovy... I can probably count on one hand the situations when a counter-based loop is necessary.
- vorg 11y ago> I can probably count on one hand the situations when a counter-based loop is necessary Such counting is analagous to counter-based looping. If you'd said "I can probably filter down to the fingers of one hand..." I might have believed you.