4 ms·
If you want an index, use an index: for (1 = 65; i <= 90; i++){...} It's not like the syntax is that bad. But, iterators are simpler than indexing a colle
by spinlock 11y ago
If you want an index, use an index:
for (1 = 65; i <= 90; i++){...}
It's not like the syntax is that bad. But, iterators are simpler than indexing a collection. Iterators work with data structures like linked lists where you don't really have an index. And, they work when the collection changes while you're iterating it.
- jsprogrammer 11y agoBut you can't also output an array without additional lines of code.
- spinlock 11y agoYou still haven't realized that _your_ solution won't output anything without additional lines of code, have you?
- jsprogrammer 11y agoI have, except that it's not really my solution. I was just cleaning up the example to make it more readable, as that seemed to be one of the complaints of the OP.