Monocle
Attributes
- Source:
- Monocle.scala
- Graph
- Supertypes
- trait StdInstancestrait ValidatedOpticstrait NonEmptyVectorOpticstrait NonEmptyListOpticstrait NonEmptyChainOpticstrait TheseOpticstrait ChainOpticstrait TryOpticstrait Tuple1Opticstrait StringOpticstrait OptionOpticstrait MapOpticstrait LongOpticstrait ListOpticstrait IntOpticstrait FunctionOpticstrait EitherOpticstrait DoubleOpticstrait CharOpticstrait ByteOpticstrait BigIntOpticstrait BigDecimalOpticstrait GenericOpticstrait Snoc1Functionstrait SnocFunctionstrait ReverseFunctionstrait PossibleFunctionstrait PlatedFunctionstrait CommonPlatedFunctionstrait IndexFunctionstrait FilterIndexFunctionstrait Field6Functionstrait Field5Functionstrait Field4Functionstrait Field3Functionstrait Field2Functionstrait Field1Functionstrait EmptyFunctionstrait EachFunctionstrait CurryFunctionstrait Cons1Functionstrait ConsFunctionstrait AtFunctionstrait Syntaxestrait FieldsSyntaxtrait MacroSyntaxtrait ComposedFocusSyntaxtrait AppliedFocusSyntaxtrait AppliedSyntaxclass Objecttrait Matchableclass Any
- Self type
- Monocle.type
Members list
Value members
Inherited methods
Attributes
- Inherited from:
- AtFunctions
- Source:
- At.scala
Attributes
- Inherited from:
- ChainOptics
- Source:
- Chain.scala
Attributes
- Inherited from:
- NonEmptyChainOptics
- Source:
- NonEmptyChain.scala
Attributes
- Inherited from:
- ChainOptics
- Source:
- Chain.scala
get the immediate self-similar children of a target
get the immediate self-similar children of a target
Attributes
- Inherited from:
- PlatedFunctions
- Source:
- Plated.scala
Attributes
- Inherited from:
- EachFunctions
- Source:
- Each.scala
Attributes
- Inherited from:
- ValidatedOptics
- Source:
- Validated.scala
Attributes
- Inherited from:
- FilterIndexFunctions
- Source:
- FilterIndex.scala
Attributes
- Inherited from:
- FunctionOptics
- Source:
- Function.scala
Attributes
- Inherited from:
- FunctionOptics
- Source:
- Function.scala
Attributes
- Inherited from:
- IndexFunctions
- Source:
- Index.scala
Attributes
- Inherited from:
- ListOptics
- Source:
- List.scala
Attributes
- Inherited from:
- NonEmptyChainOptics
- Source:
- NonEmptyChain.scala
Attributes
- Inherited from:
- NonEmptyListOptics
- Source:
- NonEmptyList.scala
Attributes
- Inherited from:
- NonEmptyVectorOptics
- Source:
- NonEmptyVector.scala
Attributes
- Inherited from:
- OptionOptics
- Source:
- Option.scala
Attributes
- Inherited from:
- NonEmptyChainOptics
- Source:
- NonEmptyChain.scala
Attributes
- Inherited from:
- NonEmptyListOptics
- Source:
- NonEmptyList.scala
Attributes
- Inherited from:
- NonEmptyVectorOptics
- Source:
- NonEmptyVector.scala
Attributes
- Inherited from:
- OptionOptics
- Source:
- Option.scala
Attributes
- Inherited from:
- ChainOptics
- Source:
- Chain.scala
Attributes
- Inherited from:
- NonEmptyChainOptics
- Source:
- NonEmptyChain.scala
Attributes
- Inherited from:
- ChainOptics
- Source:
- Chain.scala
Attributes
- Inherited from:
- ValidatedOptics
- Source:
- Validated.scala
Attributes
- Inherited from:
- ListOptics
- Source:
- List.scala
Attributes
- Inherited from:
- NonEmptyChainOptics
- Source:
- NonEmptyChain.scala
Attributes
- Inherited from:
- NonEmptyListOptics
- Source:
- NonEmptyList.scala
Attributes
- Inherited from:
- NonEmptyVectorOptics
- Source:
- NonEmptyVector.scala
Attributes
- Inherited from:
- NonEmptyChainOptics
- Source:
- NonEmptyChain.scala
Attributes
- Inherited from:
- NonEmptyListOptics
- Source:
- NonEmptyList.scala
Attributes
- Inherited from:
- NonEmptyVectorOptics
- Source:
- NonEmptyVector.scala
Attributes
- Inherited from:
- OptionOptics
- Source:
- Option.scala
Attributes
- Inherited from:
- OptionOptics
- Source:
- Option.scala
Attributes
- Inherited from:
- EitherOptics
- Source:
- Either.scala
Attributes
- Inherited from:
- EitherOptics
- Source:
- Either.scala
Attributes
- Inherited from:
- ValidatedOptics
- Source:
- Validated.scala
Attributes
- Inherited from:
- TheseOptics
- Source:
- These.scala
Attributes
- Inherited from:
- TheseOptics
- Source:
- These.scala
Attributes
- Inherited from:
- ValidatedOptics
- Source:
- Validated.scala
Attributes
- Inherited from:
- NonEmptyVectorOptics
- Source:
- NonEmptyVector.scala
Traversal of immediate self-similar children
Traversal of immediate self-similar children
Attributes
- Inherited from:
- CommonPlatedFunctions
- Source:
- Plated.scala
delete a value associated with a key in a Map-like container
delete a value associated with a key in a Map-like container
Attributes
- Inherited from:
- AtFunctions
- Source:
- At.scala
rewrite a target by applying a rule as often as possible until it reaches a fixpoint (this is an infinite loop if there is no fixpoint)
rewrite a target by applying a rule as often as possible until it reaches a fixpoint (this is an infinite loop if there is no fixpoint)
Attributes
- Inherited from:
- PlatedFunctions
- Source:
- Plated.scala
rewrite a target by applying a rule within a Setter, as often as possible until it reaches a fixpoint (this is an infinite loop if there is no fixpoint)
rewrite a target by applying a rule within a Setter, as often as possible until it reaches a fixpoint (this is an infinite loop if there is no fixpoint)
Attributes
- Inherited from:
- PlatedFunctions
- Source:
- Plated.scala
Attributes
- Inherited from:
- OptionOptics
- Source:
- Option.scala
Attributes
- Inherited from:
- EitherOptics
- Source:
- Either.scala
Attributes
- Inherited from:
- EitherOptics
- Source:
- Either.scala
Attributes
- Inherited from:
- ValidatedOptics
- Source:
- Validated.scala
Attributes
- Inherited from:
- TheseOptics
- Source:
- These.scala
Attributes
- Inherited from:
- TheseOptics
- Source:
- These.scala
Attributes
- Inherited from:
- TheseOptics
- Source:
- These.scala
transform every element
transforming counting changes
transforming every element using monadic transformation
transforming every element using monadic transformation
Attributes
- Inherited from:
- PlatedFunctions
- Source:
- Plated.scala
transform every element by applying a Setter
transform every element by applying a Setter
Attributes
- Inherited from:
- PlatedFunctions
- Source:
- Plated.scala
Attributes
- Inherited from:
- Tuple1Optics
- Source:
- Tuple1.scala
get all transitive self-similar elements of a target, including itself
get all transitive self-similar elements of a target, including itself
Attributes
- Inherited from:
- PlatedFunctions
- Source:
- Plated.scala
Attributes
- Inherited from:
- ValidatedOptics
- Source:
- Validated.scala
Attributes
- Inherited from:
- NonEmptyVectorOptics
- Source:
- NonEmptyVector.scala
Creates an Iso that maps None
to defaultValue
and inversely.
Creates an Iso that maps None
to defaultValue
and inversely.
val defaultTo0 = withDefault(0)
defaultTo0.get(None) == 0
defaultTo0.get(Some(1)) == 1
defaultTo0.reverseGet(0) == None
defaultTo0.reverseGet(1) == Some(1)
withDefault
is a valid Iso only if we consider the set of A
without defaultValue
. For example, Some(0)
breaks the round-trip property of Iso:
defaultTo0.reverseGet(defaultTo0.get(Some(0))) == None
Attributes
- See also:
This method is called
non
in Haskell Lens.- Inherited from:
- OptionOptics
- Source:
- Option.scala
Deprecated and Inherited methods
Attributes
- Deprecated
[Since version 3.0.0-M2]
- Inherited from:
- FieldsSyntax
- Source:
- Fields.scala
Attributes
- Deprecated
[Since version 3.0.0-M2]
- Inherited from:
- FieldsSyntax
- Source:
- Fields.scala
Attributes
- Deprecated
[Since version 3.0.0-M2]
- Inherited from:
- FieldsSyntax
- Source:
- Fields.scala
Attributes
- Deprecated
[Since version 3.0.0-M2]
- Inherited from:
- FieldsSyntax
- Source:
- Fields.scala
Attributes
- Deprecated
[Since version 3.0.0-M2]
- Inherited from:
- FieldsSyntax
- Source:
- Fields.scala
Attributes
- Deprecated
[Since version 3.0.0-M2]
- Inherited from:
- FieldsSyntax
- Source:
- Fields.scala
append an element to the head
append an element to the head
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Inherited from:
- ConsFunctions
- Source:
- Cons.scala
append an element to the head
append an element to the head
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Inherited from:
- Cons1Functions
- Source:
- Cons1.scala
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Inherited from:
- EmptyFunctions
- Source:
- Empty.scala
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Inherited from:
- EmptyFunctions
- Source:
- Empty.scala
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Inherited from:
- ReverseFunctions
- Source:
- Reverse.scala
append an element to the end
append an element to the end
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Inherited from:
- SnocFunctions
- Source:
- Snoc.scala
append an element to the end
append an element to the end
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Inherited from:
- Snoc1Functions
- Source:
- Snoc1.scala
deconstruct an S between its head and tail
deconstruct an S between its head and tail
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Inherited from:
- ConsFunctions
- Source:
- Cons.scala
deconstruct an S between its head and tail
deconstruct an S between its head and tail
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Inherited from:
- Cons1Functions
- Source:
- Cons1.scala
deconstruct an S between its init and last
deconstruct an S between its init and last
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Inherited from:
- SnocFunctions
- Source:
- Snoc.scala
deconstruct an S between its init and last
deconstruct an S between its init and last
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Inherited from:
- Snoc1Functions
- Source:
- Snoc1.scala
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Inherited from:
- ConsFunctions
- Source:
- Cons.scala
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Inherited from:
- Cons1Functions
- Source:
- Cons1.scala
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Inherited from:
- CurryFunctions
- Source:
- Curry.scala
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Inherited from:
- EmptyFunctions
- Source:
- Empty.scala
Attributes
- Deprecated
[Since version 3.0.0-M2]
- Inherited from:
- Field5Functions
- Source:
- Field5.scala
Attributes
- Deprecated
[Since version 3.0.0-M2]
- Inherited from:
- Field1Functions
- Source:
- Field1.scala
Attributes
- Deprecated
[Since version 3.0.0-M2]
- Inherited from:
- Field4Functions
- Source:
- Field4.scala
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Inherited from:
- Cons1Functions
- Source:
- Cons1.scala
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Inherited from:
- ConsFunctions
- Source:
- Cons.scala
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Inherited from:
- Snoc1Functions
- Source:
- Snoc1.scala
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Inherited from:
- SnocFunctions
- Source:
- Snoc.scala
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Inherited from:
- Snoc1Functions
- Source:
- Snoc1.scala
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Inherited from:
- SnocFunctions
- Source:
- Snoc.scala
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Inherited from:
- PossibleFunctions
- Source:
- Possible.scala
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Inherited from:
- ReverseFunctions
- Source:
- Reverse.scala
Attributes
- Deprecated
[Since version 3.0.0-M2]
- Inherited from:
- Field2Functions
- Source:
- Field2.scala
Attributes
- Deprecated
[Since version 3.0.0-M2]
- Inherited from:
- Field6Functions
- Source:
- Field6.scala
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Inherited from:
- SnocFunctions
- Source:
- Snoc.scala
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Inherited from:
- Snoc1Functions
- Source:
- Snoc1.scala
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Inherited from:
- Cons1Functions
- Source:
- Cons1.scala
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Inherited from:
- ConsFunctions
- Source:
- Cons.scala
Attributes
- Deprecated
[Since version 3.0.0-M2]
- Inherited from:
- Field3Functions
- Source:
- Field3.scala
Attributes
- Deprecated
[Since version 3.0.0-M1]
- Inherited from:
- CurryFunctions
- Source:
- Curry.scala
Inherited fields
Attributes
- Inherited from:
- BigDecimalOptics
- Source:
- BigDecimal.scala
Attributes
- Inherited from:
- BigDecimalOptics
- Source:
- BigDecimal.scala
Attributes
- Inherited from:
- BigIntOptics
- Source:
- BigInt.scala
Attributes
- Inherited from:
- BigIntOptics
- Source:
- BigInt.scala
Attributes
- Inherited from:
- BigIntOptics
- Source:
- BigInt.scala
Attributes
- Inherited from:
- BigIntOptics
- Source:
- BigInt.scala
Attributes
- Inherited from:
- BigIntOptics
- Source:
- BigInt.scala
Attributes
- Inherited from:
- ByteOptics
- Source:
- Byte.scala
Attributes
- Inherited from:
- CharOptics
- Source:
- Char.scala
Attributes
- Inherited from:
- DoubleOptics
- Source:
- Double.scala
Attributes
- Inherited from:
- DoubleOptics
- Source:
- Double.scala
Attributes
- Inherited from:
- LongOptics
- Source:
- Long.scala
Attributes
- Inherited from:
- LongOptics
- Source:
- Long.scala
Attributes
- Inherited from:
- LongOptics
- Source:
- Long.scala
Attributes
- Inherited from:
- LongOptics
- Source:
- Long.scala
Attributes
- Inherited from:
- StringOptics
- Source:
- String.scala
Attributes
- Inherited from:
- StringOptics
- Source:
- String.scala
Attributes
- Inherited from:
- StringOptics
- Source:
- String.scala
Attributes
- Inherited from:
- StringOptics
- Source:
- String.scala
Attributes
- Inherited from:
- StringOptics
- Source:
- String.scala
Attributes
- Inherited from:
- StringOptics
- Source:
- String.scala
Attributes
- Inherited from:
- StringOptics
- Source:
- String.scala
Extensions
Inherited extensions
Attributes
- Inherited from:
- AppliedFocusSyntax
- Source:
- AppliedFocusSyntax.scala
Attributes
- Inherited from:
- AppliedFocusSyntax
- Source:
- AppliedFocusSyntax.scala
Generate an Iso between a case class S
and its fields.
Generate an Iso between a case class S
and its fields.
Case classes with 0 fields will correspond with EmptyTuple
, 1 with Tuple1[field type]
, 2 or more with a
tuple of all field types in the same order as the fields themselves.
Attributes
- Inherited from:
- MacroSyntax
- Source:
- MacroSyntax.scala
Attributes
- Inherited from:
- MacroSyntax
- Source:
- MacroSyntax.scala
Attributes
- Inherited from:
- MacroSyntax
- Source:
- MacroSyntax.scala
Attributes
- Inherited from:
- MacroSyntax
- Source:
- MacroSyntax.scala
Attributes
- Inherited from:
- MacroSyntax
- Source:
- MacroSyntax.scala
Attributes
- Inherited from:
- MacroSyntax
- Source:
- MacroSyntax.scala
Attributes
- Inherited from:
- ComposedFocusSyntax
- Source:
- ComposedFocusSyntax.scala
Attributes
- Inherited from:
- MacroSyntax
- Source:
- MacroSyntax.scala
Attributes
- Inherited from:
- MacroSyntax
- Source:
- MacroSyntax.scala
Attributes
- Inherited from:
- MacroSyntax
- Source:
- MacroSyntax.scala
Attributes
- Inherited from:
- MacroSyntax
- Source:
- MacroSyntax.scala
Attributes
- Inherited from:
- MacroSyntax
- Source:
- MacroSyntax.scala
Implicits
Inherited implicits
Attributes
- Inherited from:
- AppliedSyntax
- Source:
- Applied.scala
Attributes
- Inherited from:
- AppliedSyntax
- Source:
- Applied.scala
Attributes
- Inherited from:
- AppliedSyntax
- Source:
- Applied.scala
Attributes
- Inherited from:
- AppliedSyntax
- Source:
- Applied.scala
Attributes
- Inherited from:
- AppliedSyntax
- Source:
- Applied.scala
Attributes
- Inherited from:
- AppliedSyntax
- Source:
- Applied.scala
Attributes
- Inherited from:
- AppliedSyntax
- Source:
- Applied.scala
Attributes
- Inherited from:
- AppliedSyntax
- Source:
- Applied.scala