Skip to content

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

Notifications You must be signed in to change notification settings

alhassy/design-patterns-higher-order

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published