๐ฐfor...in vs. forEach
Swift โฉ flow control โฉ loop โฉ for...in vs. .forEach()
flow control | for ... in | .forEach() |
---|---|---|
continue | โ skip to the next iteration. | โ not allowed |
break | โ break the iteration completely. | โ not allowed |
โ invalid outside of a function. | โskip to the next iteration. |
Last updated