Last active
December 28, 2017 08:08
-
-
Save dadhi/05990a89f6881996bfced6a05e560231 to your computer and use it in GitHub Desktop.
C# Cofree experiments from John De Goes talk https://www.youtube.com/watch?v=R_nYc4FItcI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| namespace FP | |
| { | |
| // final case class Cofree[F[_], A](head: A, tail: F[Cofree[F, A]]) | |
| public interface ICofree<F, _, A> | |
| { | |
| A Head { get; } | |
| CofreeF Tail<CofreeF>() where CofreeF : ICofree<F, _, A>; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment