Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. Func<int, ILazyComonad<int>> CofreeAna = null;
  2.  
  3. CofreeAna = n => new LazyCofree(n + 1, new Lazy(() => new IdentiyF(CofreeAna(n + 1))));
  4.  
  5. var stream = CofreeAna(0);
  6.  
  7. var t = stream.Next().Map(x => x * 2).Next().Next().Map(x => x * 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement