Skip to content

Instantly share code, notes, and snippets.

@qapquiz
Created November 6, 2019 11:42
Show Gist options
  • Save qapquiz/f9d73ce313709a71ba307453bfcf3fd8 to your computer and use it in GitHub Desktop.
Save qapquiz/f9d73ce313709a71ba307453bfcf3fd8 to your computer and use it in GitHub Desktop.
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