RosettaCodeData/Task/Loops-Foreach/Objective-C/loops-foreach-2.m

8 lines
146 B
Mathematica
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
NSArray *collect;
2024-04-19 16:56:29 -07:00
// ...
2023-07-01 11:58:00 -04:00
NSEnumerator *enm = [collect objectEnumerator];
id i;
2024-04-19 16:56:29 -07:00
while ((i = [enm nextObject])) {
2023-07-01 11:58:00 -04:00
// do something with object i
}