This commit is contained in:
Sanchime 2022-05-05 21:07:43 +08:00
parent 49716bd884
commit 0314a40825
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,6 @@
namespace Sanchime.Functional.Core.Products;
public interface ICategory
{
}

View File

@ -0,0 +1,11 @@
namespace Sanchime.Functional.Core.Products;
/// <summary>
/// 函子
/// 同一范畴内不同对象之间的映射
/// </summary>
/// <typeparam name="TCategory"></typeparam>
public interface IFunctor<TCategory> : ICategory
{
IFunctor<TResult> Map<TResult>(Func<TCategory, IFunctor<TResult>> mapping);
}