Monad in C#
天啊,好累 ><
Abstracting over 'M'
希臘文 :o
用這翻譯軟體:Language Translator
雖然不知道有沒有翻對,但基本上非常通順...
Recently a formalism search (in C#) so that I can have a
generic-reusable definition of a Monad. What is missing from
.Net generics is the ability to have a level of abstraction
Type Constructor. As an example of this abstraction, presenting
the generic definition of a Monad through my two favorite
languages.
是 Haskell and Scala.
After some experimentation and study, reached the following code.
不過 C# 懶得細看了(或是說沒空?),只是覺得很有趣。
拿來當寫 Monad in Scala 的參考吧。
0 retries:
Post a Comment
Note: Only a member of this blog may post a comment.