Declared in NSMutableIndexSet+BlocksKit.h

Overview

Block extensions for NSMutableIndexSet.

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.

Tasks

  • – bk_performSelect:

    Filters a mutable index set to the indexes matching the block.

  • – bk_performReject:

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

  • – bk_performMap:

    Transform each index of the index set to a new index, as returned by the block.

Instance Methods

bk_performMap:

- (void)bk_performMap:(NSUInteger ( ^ ) ( NSUInteger index ))block
Discussion

Transform each index of the index set to a new index, as returned by the block.

Parameters

block

A block that returns a new index for a index.

See Also

Declared In

NSMutableIndexSet+BlocksKit.h

bk_performReject:

- (void)bk_performReject:(BOOL ( ^ ) ( NSUInteger index ))block
Discussion

Filters a mutable index set to all indexes 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

NSMutableIndexSet+BlocksKit.h

bk_performSelect:

- (void)bk_performSelect:(BOOL ( ^ ) ( NSUInteger index ))block
Discussion

Filters a mutable index set to the indexes matching the block.

Parameters

block

A single-argument, BOOL-returning code block.

See Also

Declared In

NSMutableIndexSet+BlocksKit.h