|
|
|
|
|
by andybak
3307 days ago
|
|
I agree. Looping over a numeric sequence is simply a specific case of looping over any collection. A language should reflect this. It feels so natural to write: for thing in collection: process(thing)
and very easy to move from that to a functional style: map(collection, process)
or collection.map(process)
The number of times I also need a integer counter is fairly small. |
|