Last active
August 27, 2022 17:45
-
-
Save dimitris-papadimitriou-chr/3aacd57d441c3fd777f2cd96a7b1c09f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public delegate Task<R> Operation<T, R>(T t); | |
public static partial class FuntionalExtensions | |
{ | |
public static Operation<T, R> AddDebugLogging<T, R>(this Operation<T, R> @this) => | |
(T t) => | |
{ | |
var result = @this(t); | |
Debug.WriteLine(result); | |
return result; | |
}; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment