Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @import Foundation;
- NS_ASSUME_NONNULL_BEGIN
- @interface Function<__contravariant InType, __covariant OutType> : NSObject
- {
- // interestingly, this does work here (though OutType & InType are not available in the @implementation)
- OutType (^_block)(InType);
- }
- - (instancetype)initWithBlock:(OutType (^)(InType))block;
- - (OutType)evaluateAt:(InType)value;
- @end
- NS_ASSUME_NONNULL_END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement