October 2019
Intermediate to advanced
434 pages
11h 54m
English
In Arrow, typeclasses allow you to define functional logic via extension interfaces (interfaces that define extension functions). This allows us to create implementations of a typeclass for any class, even those we do not control or that are closed for extension. This also means that the behaviors are composable since they are essentially stateless functions.
Arrow provides numerous typeclasses out of the box. Examples include the following:
In this snippet, we've defined a filter function that takes an instance of Eq to compare ...
Read now
Unlock full access