www.delorie.com/gnu/docs/libobjects/libobjects_21.html   search  
 
Buy GNU books!


User's Guide to the GNU Objective-C Class Library

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

12. Enumerating the Contents of a Collection

Enumeration methods allow you to perform a specified operation on the members of a collection. You can operate on all the members, operate on all the members until a flag is set, operate only on the members that pass some test, or operate on the results of passing the members through a modifying function. Each of the enumerators come in pairs: one method for enumerating in place, and another method that is "safe" for enumerating when the operation changes the contents of the receiving collection. If the contents of the collection are changed during the enumeration you must use the "safe" methods.

12.1 Safe vs Unsafe Enumerating  Enumerations while changing the contents

12.2 Basic Enumerating  Enumerations available for all collections
12.3 Keyed Enumerating  Enumerations on collections with keys
12.4 Indexed Enumerating  Enumerations on ordered collections

12.5 Defining Functions In Place with LAMBDA()  Defining functions in place with LAMBDA()


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright © 2003   by The Free Software Foundation     Updated Jun 2003  

Please take a moment to fill out this visitor survey
You can help support this site by visiting the advertisers that sponsor it! (only once each, though)