An open API service indexing awesome lists of open source software.

https://github.com/alhassy/design-patterns-higher-order

Notes & implementations of the code within Jeremy Gibbons' ``Design Patterns as Higher-Order Datatype-Generic Programs''; notably focus on multibranching trees and their BDS.
https://github.com/alhassy/design-patterns-higher-order

cheatsheet design-patterns haskell higher-order-functions java

Last synced: 9 months ago
JSON representation

Notes & implementations of the code within Jeremy Gibbons' ``Design Patterns as Higher-Order Datatype-Generic Programs''; notably focus on multibranching trees and their BDS.

Awesome Lists containing this project

README

          

# design-patterns-higher-order
Notes & implementations of the code within Jeremy Gibbons' ``Design Patterns as Higher-Order Datatype-Generic Programs''

+ A simple demonstration of the claims for the Haskell `Either` datatype in Java.

+ Then the iterator pattern for multibranching “rose” trees is presented in Java;
taking more than 30 lines.

+ The breadth-first preorder is also presented in Haskell in essentially one line.