1
 2
 3
 4
 5
 6
 7
 8
 9
10
#import <Foundation/Foundation.h>

int main()
{
    NSAutoreleasePool *pool = [NSAutoreleasePool new];
    NSArray *givenList = [NSArray arrayWithObjects:@"a", @"b", @"c", @"d", @"e", nil];
    for (id obj in [givenList reverseObjectEnumerator]) NSLog(obj);
    [pool release];
    return 0;
}