The post explains how to port the Zipper data structure from Haskell to C#. It focuses on using Church encoding to model sum types and discusses the implementation of a binary tree with catamorphisms. It includes detailed code examples and comparison with alternative strategies, emphasizing the navigational structures required for tree manipulation. The code enhances understanding of abstract functional programming concepts in a C# context, although it's noted that this approach may not be practical for production use.

15m read timeFrom blog.ploeh.dk
Post cover image
Table of contents
Binary tree initialization and structure #Private interface #Binary tree catamorphism #Binary tree Church encoding #Breadcrumbs #Zipper data structure and initialization #Navigation #Modifications #Conclusion #

Sort: