Hi,
Do you see a way to specify that my result type have to be MonadType< arg type > within this interface ?
interface IMonad<MonadType> // where MonadType : GenricType<>
{
MonadType<T1> unit<T1>(T1 t)
Func<MonadType<T1>, MonadType<T2>> map<T1, T2>(Func<T1, T2> f);
}
I get as an error : The type parameter 'MonadType' cannot be used with type arguments