• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Fast enumeration question.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fast enumeration question.


  • Subject: Fast enumeration question.
  • From: Alex Zavatone <email@hidden>
  • Date: Thu, 14 May 2015 12:09:18 -0400

I'm sure this will sound like the noobiest question ever, but with Fast Enumeration, if in an if statement within the loop, is there a way to stop loop execution and essentially do a "proceed to the next item in the list please"?

Interested in something like BASIC's next repeat or something to that effect.

In my scanning of the Apple docs, I didn't see that.  Does break do that or simply break out of the loop all together?

For example, if I'm counting from 1 to 10, hit 3, I want the loop to skip to 4 and keep going.

Thanks much.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Fast enumeration question.
      • From: email@hidden
    • Re: Fast enumeration question.
      • From: Roland King <email@hidden>
    • Re: Fast enumeration question.
      • From: William Squires <email@hidden>
    • Re: Fast enumeration question.
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: Re: Aggravation trying to implement NSValueTransformer subclasses in Swift
  • Next by Date: Re: Fast enumeration question.
  • Previous by thread: Re: Aggravation trying to implement NSValueTransformer subclasses in Swift
  • Next by thread: Re: Fast enumeration question.
  • Index(es):
    • Date
    • Thread