Too Long; Didn't Read
In this article we will examine in depth a useful concept, the catamorphism, commonly used in functional languages but rarely seen in <a href="https://hackernoon.com/tagged/java" target="_blank">Java</a>. Catamorphisms are very easy to implement, and typically only require a few lines of Java code. Those few lines of code add significant power to your internal APIs, effectively introducing compiler enforced, exhaustive structural pattern matching, the kind that can banish frustrating and difficult to stop bugs that sneak in through complex if / then / else spaghetti code.