In the last recipe, we have Functor instances defined for Maybe, Either, and List. We even defined the Functor instance. In this recipe, we will create a data type Binary Tree and define a Functor instance for it.
In the last recipe, we have Functor instances defined for Maybe, Either, and List. We even defined the Functor instance. In this recipe, we will create a data type Binary Tree and define a Functor instance for it.