//
// Collectors.h
// GotoBus
//
// Created by haibara on 3/6/15.
//
//

#import <Foundation/Foundation.h>

@interface Collectors : NSObject
+ (NSDictionary *)groupingBy:(NSArray *)elements classifierWithKeyPath:(NSString *)keyPath;
+ (NSDictionary *)groupingBy:(NSArray *)elements classifierWithBlock:(id<NSCopying> (^) (id obj))block;
+ (NSDictionary *)toMap:(NSArray *)elements keyMapperWithKeyPath:(NSString *)keyPath;
+ (NSDictionary *)toMap:(NSArray *)elements keyMapperWithBlock:(id<NSCopying> (^)(id obj))block;
@end
