Uses of Package
fj.data.optic
-
Packages that use fj.data.optic Package Description fj Types that set the premise for the existence of Functional Java.fj.data Common algebraic data types.fj.data.optic Optic data types adapted from the Scala Monocle library and inspired by the Haskell Lens library. -
Classes in fj.data.optic used by fj Class Description Lens PLens
with a monomorphic set functionPLens APLens
can be seen as a pair of functions:get: S => A
i.e. -
Classes in fj.data.optic used by fj.data Class Description Optional POptional
restricted to monomorphic updatePPrism Prism PPrism
restricted to monomorphic updatePTraversal APTraversal
can be seen as aPOptional
generalised to 0 to n targets where n can be infinite.Traversal -
Classes in fj.data.optic used by fj.data.optic Class Description Fold AFold
can be seen as aGetter
with many targets or a weakerPTraversal
which cannot modify its target.Getter AGetter
can be seen as a glorified get method between a type S and a type A.Iso PIso
when S = T and A = BLens PLens
with a monomorphic set functionOptional POptional
restricted to monomorphic updatePIso APIso
defines an isomorphism between types S, A and B, T:PLens APLens
can be seen as a pair of functions:get: S => A
i.e.POptional PPrism Prism PPrism
restricted to monomorphic updatePSetter APSetter
is a generalisation of Functor map:map: (A => B) => F[A] => F[B]
modify: (A => B) => S => T
PTraversal APTraversal
can be seen as aPOptional
generalised to 0 to n targets where n can be infinite.Setter PSetter
with a monomorphic modify functionTraversal