Implementing Type classes in Scala 3
We saw in Scala 3 a type class’s implementation is expressed through a given instance definition, which is supplied as an implicit argument alongside the value it acts upon. The type class solution takes more effort to set up, but is more extensible: instances for type classes can be defined anywhere. Ayush Mittal |
Finite-State Machines + FS2 streams: A match made in heaven
To demonstrate it, I’ll make up a compelling problem to solve and we will get to the final solution step by step. Gabriel Volpe (@volpegabriel87) |