top | item 43839213

(no title)

charrondev | 10 months 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?

discuss

order

IshKebab|10 months ago

You're missing that I am an idiot and was mixing up iterators with functional style programming :D