Uses of Package
fj.data.optic
Packages that use fj.data.optic
Package
Description
Types that set the premise for the existence of Functional Java.
Common algebraic data types.
Optic data types adapted from the Scala Monocle library
and inspired by the
Haskell Lens library.
-
Classes in fj.data.optic used by fj
-
Classes in fj.data.optic used by fj.dataClassDescription
POptionalrestricted to monomorphic updatePPrismrestricted to monomorphic updateAPTraversalcan be seen as aPOptionalgeneralised to 0 to n targets where n can be infinite. -
Classes in fj.data.optic used by fj.data.opticClassDescriptionA
Foldcan be seen as aGetterwith many targets or a weakerPTraversalwhich cannot modify its target.AGettercan be seen as a glorified get method between a type S and a type A.PIsowhen S = T and A = BPLenswith a monomorphic set functionPOptionalrestricted to monomorphic updateAPIsodefines an isomorphism between types S, A and B, T:APLenscan be seen as a pair of functions:get: S => Ai.e.PPrismrestricted to monomorphic updateAPSetteris a generalisation of Functor map:map: (A => B) => F[A] => F[B]modify: (A => B) => S => TAPTraversalcan be seen as aPOptionalgeneralised to 0 to n targets where n can be infinite.PSetterwith a monomorphic modify function