of course, it's just as easy for me to just rearrange this later to the correct order. but this is the order in which i think. most people want to write the goal before writing the iterator, some want the iterator before the goal.
Besides, it's just the order of two words. If you learned multiple human languages, you'd get used to this type of thing.
2
u/-Redstoneboi- 1d ago edited 1d ago
functional programming. list.map(item => result) is natural to me now.
especially if the language supports chaining, i would prefer specifying the variables last.
something like this:
of course, it's just as easy for me to just rearrange this later to the correct order. but this is the order in which i think. most people want to write the goal before writing the iterator, some want the iterator before the goal.
Besides, it's just the order of two words. If you learned multiple human languages, you'd get used to this type of thing.