Created
November 6, 2019 11:42
-
-
Save qapquiz/f9d73ce313709a71ba307453bfcf3fd8 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
using System; | |
public static class Category { | |
public static T Identity<T>(T obj) { | |
return obj; | |
} | |
public static Func<T1, TFinal> Compose<T1, TResult, TFinal>(Func<TResult, TFinal> f, Func<T1, TResult> g) { | |
return (T1 t) => { | |
return f(g(t)); | |
}; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment