AnAffineTraversal

class Object
trait Matchable
class Any

Value members

Concrete methods

final def apply[S, A](viewOrModify: S => Either[S, A])(set: S => A => S): AnAffineTraversal[S, A]

create a monomorphic AnAffineTraversal from a matcher function that produces an Either and a setter function

create a monomorphic AnAffineTraversal from a matcher function that produces an Either and a setter function

the matcher function returns an Either to allow for type-changing prisms in the case where the input does not match.

final def fromOption[S, A](preview: S => Option[A])(set: S => A => S): AnAffineTraversal[S, A]

create a monomorphic AnAffineTraversal, using preview and setter functions

create a monomorphic AnAffineTraversal, using preview and setter functions

final def fromPartial[S, A](preview: PartialFunction[S, A])(set: S => A => S): AnAffineTraversal[S, A]

create a monomorphic AnAffineTraversal, using a partial function and a setter function

create a monomorphic AnAffineTraversal, using a partial function and a setter function

final def id[S]: AnAffineTraversal[S, S]

monomorphic identity of an AnAffineTraversal

monomorphic identity of an AnAffineTraversal