Create a functor for a binary tree in Scala

I’m trying to really really understand the scala cats library. So while I was reading the book “Scala with Cats”, I found an exercise which told me to: create a functor for a binary tree: The most immediate solution is to use recursion. In this way, the solution is extremely simple: But I felt that […]