7.9

3 Classes: Ad Hoc Polymorphism

 (require algebraic/class) package: algebraic

This module provides a simple dynamic dispatch mechanism for ad hoc polymorphism.

    3.1 Defining Classes and Instances

    3.2 The Base Classes

    3.3 Instances

      3.3.1 Box

      3.3.2 Event

      3.3.3 List

      3.3.4 Maybe

      3.3.5 Truthy

      3.3.6 Values