Functions.h 416 B

123456789101112131415161718192021
  1. #import <Foundation/Foundation.h>
  2. #import "Types.h"
  3. #import "Function2.h"
  4. @interface Functions : NSObject
  5. +(Function2 *)f2:(FUNCTION2)f2Block;
  6. + (Function1 *)f1:(FUNCTION1)f1Block;
  7. + (Function1 *)compose:(Function1 *)a and:(Function1 *)b;
  8. @end
  9. static Function2 *f2(FUNCTION2 function2) {
  10. return [Functions f2:function2];
  11. }
  12. static Function1 *f1(FUNCTION1 function1) {
  13. return [Functions f1:function1];
  14. }