3 ms·
Very interesting. Could you describe 1. what was the problem you were trying to solve? 2. What a non cat. th. solution might have looked like 3. What a “katamor
by ssivark 7y ago
Very interesting. Could you describe 1. what was the problem you were trying to solve? 2. What a non cat. th. solution might have looked like 3. What a “katamorphism” enabled you to do?
- lidHanteyk 7y agoXML files have a tree structure. A katamorphism on a tree, often called a fold in functional programming, is simply a function which recurses through the tree and flattens its data into a single summary. I can't share the details of the program with you, but hopefully this helps. Wikipedia has more information and an example at [0]. [0] https://en.wikipedia.org/wiki/Catamorphism#Tree_fold https://en.wikipedia.org/wiki/Catamorphism#Tree_fold