Esempio n. 1
0
 public static SyncTailFunc <T, R> InterceptWith <T, R>(this SyncTailFunc <T, R> tailFunc, Func <Func <T, R>, T, R> interceptor)
 {
     return(SyncTailFunc <T, R> .As((me, item) =>
     {
         return interceptor(t => tailFunc.Func(me, t), item);
     }));
 }
Esempio n. 2
0
 public static SyncTailFunc <T, R> InterceptWith <T, R>(this SyncTailFunc <T, R> tailFunc, Action <T> action)
 {
     return(tailFunc.InterceptWith((me, item) =>
     {
         action(item);
         return me(item);
     }));
 }
Esempio n. 3
0
 public static Func <T, R> ToFunc <T, R>(this SyncTailFunc <T, R> tailFunc)
 {
     return(new Func <T, R>(t => tailFunc.Run(t)));
 }