Declared in NSMutableOrderedSet+BlocksKit.h

Overview

Block extensions for NSMutableOrderedSet.

These utilities expound upon the BlocksKit additions to the immutable superclass by allowing certain utilities to work on an instance of the mutable class, saving memory by not creating an immutable copy of the results.

Includes code by the following:

Tasks

  • – bk_performSelect:

    Filters a mutable ordered set to the objects matching the block.

  • – bk_performReject:

    Filters a mutable ordered set to all objects but the ones matching the block, the logical inverse to bk_select:.

  • – bk_performMap:

    Transform the objects in the ordered set to the results of the block.

Instance Methods

bk_performMap:

- (void)bk_performMap:(id ( ^ ) ( id obj ))block
Discussion

Transform the objects in the ordered set to the results of the block.

This is sometimes referred to as a transform, mutating one of each object: [foo bk_performMap:^id(id obj) { return [dateTransformer dateFromString:obj]; }];

Parameters

block

A single-argument, object-returning code block.

See Also

Declared In

NSMutableOrderedSet+BlocksKit.h

bk_performReject:

- (void)bk_performReject:(BOOL ( ^ ) ( id obj ))block
Discussion

Filters a mutable ordered set to all objects but the ones matching the block, the logical inverse to bk_select:.

Parameters

block

A single-argument, BOOL-returning code block.

See Also

Declared In

NSMutableOrderedSet+BlocksKit.h

bk_performSelect:

- (void)bk_performSelect:(BOOL ( ^ ) ( id obj ))block
Discussion

Filters a mutable ordered set to the objects matching the block.

Parameters

block

A single-argument, BOOL-returning code block.

See Also

Declared In

NSMutableOrderedSet+BlocksKit.h