NSDictionary+RACSequenceAdditions.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // NSDictionary+RACSequenceAdditions.h
  3. // ReactiveObjC
  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<__covariant ValueType>;
  10. @class RACTuple;
  11. NS_ASSUME_NONNULL_BEGIN
  12. @interface NSDictionary<__covariant KeyType, __covariant ObjectType> (RACSequenceAdditions)
  13. /// Creates and returns a sequence of RACTuple key/value pairs. The key will be
  14. /// the first element in the tuple, and the value will be the second.
  15. ///
  16. /// Mutating the receiver will not affect the sequence after it's been created.
  17. @property (nonatomic, copy, readonly) RACSequence<RACTuple *> *rac_sequence;
  18. /// Creates and returns a sequence corresponding to the keys in the receiver.
  19. ///
  20. /// Mutating the receiver will not affect the sequence after it's been created.
  21. @property (nonatomic, copy, readonly) RACSequence<KeyType> *rac_keySequence;
  22. /// Creates and returns a sequence corresponding to the values in the receiver.
  23. ///
  24. /// Mutating the receiver will not affect the sequence after it's been created.
  25. @property (nonatomic, copy, readonly) RACSequence<ObjectType> *rac_valueSequence;
  26. @end
  27. NS_ASSUME_NONNULL_END