Differences From Artifact [720a88390f]:
- File
src/OFArray.m
— part of check-in
[f9b3ec49f8]
at
2011-07-22 18:49:36
on branch trunk
— Improve methods using blocks in OFArray.
Mutations during enumerations using blocks are now always detected,
even for methods such as -[reduceWithBlock:]. (user: js, size: 13605) [annotate] [blame] [check-ins using]
To Artifact [ce913f08f5]:
- File src/OFArray.m — part of check-in [d6faaf68b9] at 2011-07-22 17:09:56 on branch trunk — Rename -[reduceUsingBlock:] to -[foldUsingBlock:]. (user: js, size: 13601) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
638 639 640 641 642 643 644 |
} @finally {
[self freeMemory: tmp];
}
return ret;
}
| | | 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 |
} @finally {
[self freeMemory: tmp];
}
return ret;
}
- (id)foldUsingBlock: (of_array_fold_block_t)block
{
size_t count = [array count];
__block id current;
if (count == 0)
return nil;
if (count == 1)
|
| ︙ | ︙ |