NSDictionary+RACSequenceAdditions.h 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // NSDictionary+RACSequenceAdditions.h
  3. // ReactiveCocoa
  4. //
  5. // Created by Justin Spahr-Summers on 2012-10-29.
  6. // Copyright (c) 2012 GitHub. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @class RACSequence;
  10. @interface NSDictionary (RACSequenceAdditions)
  11. /// Creates and returns a sequence of RACTuple key/value pairs. The key will be
  12. /// the first element in the tuple, and the value will be the second.
  13. ///
  14. /// Mutating the receiver will not affect the sequence after it's been created.
  15. @property (nonatomic, copy, readonly) RACSequence *rac_sequence;
  16. /// Creates and returns a sequence corresponding to the keys in the receiver.
  17. ///
  18. /// Mutating the receiver will not affect the sequence after it's been created.
  19. @property (nonatomic, copy, readonly) RACSequence *rac_keySequence;
  20. /// Creates and returns a sequence corresponding to the values in the receiver.
  21. ///
  22. /// Mutating the receiver will not affect the sequence after it's been created.
  23. @property (nonatomic, copy, readonly) RACSequence *rac_valueSequence;
  24. @end