Popular Libraries
By this point, you should have a good understanding of the main concepts behind functional programming such as pure functions, immutability, and higher-order functions. In addition to that, you should be familiar with some of the most popular abstractions used when writing functional programs. With all of this knowledge, you are well equipped to start looking into some of the popular functional programming libraries in Scala.
In this section, we'll look at some of the popular functional programming libraries from the Scala ecosystem. After this section, you should be able to:
Use the
Cats
Validated
type class to validate your dataUse
Doobie
to talk to databases
Validating Data Using Cats
In this
section, we'll get a quick overview of the
Cats library and look at one of the data types
it provides to
Validate
data.
Note
For more information on Cats, refer to https://github.com/typelevel/cats.
By the
end of this section, you should understand how
Cats
fits into the...