This commit is contained in:
parent
49716bd884
commit
0314a40825
|
@ -0,0 +1,6 @@
|
||||||
|
namespace Sanchime.Functional.Core.Products;
|
||||||
|
|
||||||
|
public interface ICategory
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
|
@ -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);
|
||||||
|
}
|
Loading…
Reference in New Issue