-
-
Save dimitris-papadimitriou-chr/59c4c24a1c94e03f20c848a0ce5a201f to your computer and use it in GitHub Desktop.
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
Func<int, ILazyComonad<int>> CofreeAna = null; | |
CofreeAna = n => new LazyCofree(n + 1, new Lazy(() => new IdentiyF(CofreeAna(n + 1)))); | |
var stream = CofreeAna(0); | |
var t = stream.Next().Map(x => x * 2).Next().Next().Map(x => x * 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment