4 ms·
In what way is for different than an iterator? In PHP you loop through an iterator with the foreach control structure. In JavaScript you use for of. In rust
by charrondev 1y ago
In what way is for different than an iterator?
In PHP you loop through an iterator with the foreach control structure.
In JavaScript you use for of.
In rust it’s for in.
What am I missing?
- IshKebab 1y agoYou're missing that I am an idiot and was mixing up iterators with functional style programming :D