Permalink
Browse files

[ADD] Expose NSDictionary map:

  • Loading branch information...
kevinoneill committed Jan 23, 2012
1 parent db2dfc8 commit ef1bbcafd6eec344048d7a0ff8f41513a310a217
Showing with 1 addition and 1 deletion.
  1. +1 −1 UsefulBits/Foundation/NSDictionary+Blocks.h
@@ -3,14 +3,14 @@
// UsefulBits
//
// Created by Kevin O'Neill on 25/11/11.
-// Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSDictionary (Blocks)
- (void)each:(void (^) (id key, id value))action;
+- (NSArray *)map:(id (^) (id key, id value))action;
- (void)withValueForKey:(id)key meetingCondition:(BOOL (^) (id value))condition do:(void (^) (id value))action;
- (void)withValueForKey:(id)key ofClass:(Class)class do:(void (^) (id value))action;

0 comments on commit ef1bbca

Please sign in to comment.