hernan.tv
  • Home
  • About
Sign in Subscribe

scala

A collection of 1 post
Create a functor for a binary tree in Scala
scala

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 that told me to: create a functor for a binary tree: sealed trait Tree[+A] final case class Branch[A](left: Tree[A], right: Tree[
May 28, 2020 4 min read
Page 1 of 1
hernan.tv © 2023
  • Sign up
Powered by Ghost