From 0314a4082592c13fd9706b2f36684abfb5829adc Mon Sep 17 00:00:00 2001 From: Sanchime Date: Thu, 5 May 2022 21:07:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sanchime.Functional/Core/Products/ICategory.cs | 6 ++++++ Sanchime.Functional/Core/Products/IFunctor.cs | 11 +++++++++++ 2 files changed, 17 insertions(+) create mode 100644 Sanchime.Functional/Core/Products/ICategory.cs create mode 100644 Sanchime.Functional/Core/Products/IFunctor.cs diff --git a/Sanchime.Functional/Core/Products/ICategory.cs b/Sanchime.Functional/Core/Products/ICategory.cs new file mode 100644 index 0000000..63915e0 --- /dev/null +++ b/Sanchime.Functional/Core/Products/ICategory.cs @@ -0,0 +1,6 @@ +namespace Sanchime.Functional.Core.Products; + +public interface ICategory +{ + +} diff --git a/Sanchime.Functional/Core/Products/IFunctor.cs b/Sanchime.Functional/Core/Products/IFunctor.cs new file mode 100644 index 0000000..1b81561 --- /dev/null +++ b/Sanchime.Functional/Core/Products/IFunctor.cs @@ -0,0 +1,11 @@ +namespace Sanchime.Functional.Core.Products; + +/// +/// 函子 +/// 同一范畴内不同对象之间的映射 +/// +/// +public interface IFunctor : ICategory +{ + IFunctor Map(Func> mapping); +}