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.
- Host: GitHub
- URL: https://github.com/alhassy/design-patterns-higher-order
- Owner: alhassy
- Created: 2018-11-01T20:15:12.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-05T21:26:22.000Z (about 7 years ago)
- Last Synced: 2025-04-24T00:05:38.691Z (9 months ago)
- Topics: cheatsheet, design-patterns, haskell, higher-order-functions, java
- Language: Java
- Homepage:
- Size: 354 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.