Getting Started
just-fp
- Supported Scala Versions:
2.11
,2.12
,2.13
and3
just-fp is a small Functional Programming library. This is not meant to be an alternative to Scalaz or Cats. The reason for having this library is that in your project you don't want to have Scalaz or Cats as its dependency and you only need much smaller set of functional programming features than what Scalaz or Cats offers. So the users of your library can choose Scalaz or Cats to be used with your library.
Getting Started
In build.sbt
,
libraryDependencies += "io.kevinlee" %% "just-fp-core" % "1.6.0"
then import
import just.fp._
import just.fp.syntax._
or
import just.fp._, syntax._
In all the example code using just-fp
below, I assume that you've already imported just-fp
at the top.