object all extends StdInstances

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. all
  2. StdInstances
  3. ValidatedOptics
  4. NonEmptyVectorOptics
  5. NonEmptyListOptics
  6. NonEmptyChainOptics
  7. TheseOptics
  8. ChainOptics
  9. TryOptics
  10. Tuple1Optics
  11. StringOptics
  12. PlatformSpecificStringOptics
  13. OptionOptics
  14. MapOptics
  15. LongOptics
  16. ListOptics
  17. IntOptics
  18. FunctionOptics
  19. EitherOptics
  20. DoubleOptics
  21. CharOptics
  22. ByteOptics
  23. BigIntOptics
  24. BigDecimalOptics
  25. AnyRef
  26. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. val bigDecimalToInt: Prism[BigDecimal, Int]
    Definition Classes
    BigDecimalOptics
  2. val bigDecimalToLong: Prism[BigDecimal, Long]
    Definition Classes
    BigDecimalOptics
  3. val bigIntToBoolean: Prism[BigInt, Boolean]
    Definition Classes
    BigIntOptics
  4. val bigIntToByte: Prism[BigInt, Byte]
    Definition Classes
    BigIntOptics
  5. val bigIntToChar: Prism[BigInt, Char]
    Definition Classes
    BigIntOptics
  6. val bigIntToInt: Prism[BigInt, Int]
    Definition Classes
    BigIntOptics
  7. val bigIntToLong: Prism[BigInt, Long]
    Definition Classes
    BigIntOptics
  8. val byteToBoolean: Prism[Byte, Boolean]
    Definition Classes
    ByteOptics
  9. def chainToList[A]: Iso[Chain[A], List[A]]
    Definition Classes
    ChainOptics
  10. final def chainToNec[A]: Prism[Chain[A], NonEmptyChain[A]]
    Definition Classes
    NonEmptyChainOptics
  11. def chainToVector[A]: Iso[Chain[A], Vector[A]]
    Definition Classes
    ChainOptics
  12. val charToBoolean: Prism[Char, Boolean]
    Definition Classes
    CharOptics
  13. val doubleToFloat: Prism[Double, Float]
    Definition Classes
    DoubleOptics
  14. val doubleToInt: Prism[Double, Int]
    Definition Classes
    DoubleOptics
  15. final def failure[E, A]: Prism[Validated[E, A], E]
    Definition Classes
    ValidatedOptics
  16. final def flip[A, B, C]: Iso[(A) => (B) => C, (B) => (A) => C]
    Definition Classes
    FunctionOptics
  17. final def flipped[A, B, C]: ((A) => (B) => C) => (B) => (A) => C
    Definition Classes
    FunctionOptics
  18. val intToBoolean: Prism[Int, Boolean]
    Definition Classes
    IntOptics
  19. val intToByte: Prism[Int, Byte]
    Definition Classes
    IntOptics
  20. val intToChar: Prism[Int, Char]
    Definition Classes
    IntOptics
  21. def listToVector[A]: Iso[List[A], Vector[A]]
    Definition Classes
    ListOptics
  22. val longToBoolean: Prism[Long, Boolean]
    Definition Classes
    LongOptics
  23. val longToByte: Prism[Long, Byte]
    Definition Classes
    LongOptics
  24. val longToChar: Prism[Long, Char]
    Definition Classes
    LongOptics
  25. val longToInt: Prism[Long, Int]
    Definition Classes
    LongOptics
  26. def mapToSet[K]: Iso[Map[K, Unit], Set[K]]
    Definition Classes
    MapOptics
  27. final def necToOneAnd[A]: Iso[NonEmptyChain[A], OneAnd[Chain, A]]
    Definition Classes
    NonEmptyChainOptics
  28. final def nelToOneAnd[A]: Iso[NonEmptyList[A], OneAnd[List, A]]
    Definition Classes
    NonEmptyListOptics
  29. final def nevToOneAnd[A]: Iso[NonEmptyVector[A], OneAnd[Vector, A]]
    Definition Classes
    NonEmptyVectorOptics
  30. final def none[A]: Prism[Option[A], Unit]
    Definition Classes
    OptionOptics
  31. final def optNecToChain[A]: Iso[Option[NonEmptyChain[A]], Chain[A]]
    Definition Classes
    NonEmptyChainOptics
  32. final def optNelToList[A]: Iso[Option[NonEmptyList[A]], List[A]]
    Definition Classes
    NonEmptyListOptics
  33. final def optNevToVector[A]: Iso[Option[NonEmptyVector[A]], Vector[A]]
    Definition Classes
    NonEmptyVectorOptics
  34. final def optionToDisjunction[A]: Iso[Option[A], Either[Unit, A]]
    Definition Classes
    OptionOptics
  35. def pChainToList[A, B]: PIso[Chain[A], Chain[B], List[A], List[B]]
    Definition Classes
    ChainOptics
  36. final def pChainToNec[A, B]: PPrism[Chain[A], Chain[B], NonEmptyChain[A], NonEmptyChain[B]]
    Definition Classes
    NonEmptyChainOptics
  37. def pChainToVector[A, B]: PIso[Chain[A], Chain[B], Vector[A], Vector[B]]
    Definition Classes
    ChainOptics
  38. final def pFailure[E, A, F]: PPrism[Validated[E, A], Validated[F, A], E, F]
    Definition Classes
    ValidatedOptics
  39. def pListToVector[A, B]: PIso[List[A], List[B], Vector[A], Vector[B]]
    Definition Classes
    ListOptics
  40. final def pNecToOneAnd[A, B]: PIso[NonEmptyChain[A], NonEmptyChain[B], OneAnd[Chain, A], OneAnd[Chain, B]]
    Definition Classes
    NonEmptyChainOptics
  41. final def pNelToOneAnd[A, B]: PIso[NonEmptyList[A], NonEmptyList[B], OneAnd[List, A], OneAnd[List, B]]
    Definition Classes
    NonEmptyListOptics
  42. final def pNevToOneAnd[A, B]: PIso[NonEmptyVector[A], NonEmptyVector[B], OneAnd[Vector, A], OneAnd[Vector, B]]
    Definition Classes
    NonEmptyVectorOptics
  43. final def pOptNecToChain[A, B]: PIso[Option[NonEmptyChain[A]], Option[NonEmptyChain[B]], Chain[A], Chain[B]]
    Definition Classes
    NonEmptyChainOptics
  44. final def pOptNelToList[A, B]: PIso[Option[NonEmptyList[A]], Option[NonEmptyList[B]], List[A], List[B]]
    Definition Classes
    NonEmptyListOptics
  45. final def pOptNevToVector[A, B]: PIso[Option[NonEmptyVector[A]], Option[NonEmptyVector[B]], Vector[A], Vector[B]]
    Definition Classes
    NonEmptyVectorOptics
  46. final def pOptionToDisjunction[A, B]: PIso[Option[A], Option[B], Either[Unit, A], Either[Unit, B]]
    Definition Classes
    OptionOptics
  47. final def pSome[A, B]: PPrism[Option[A], Option[B], A, B]
    Definition Classes
    OptionOptics
  48. final def pStdLeft[A, B, C]: PPrism[Either[A, B], Either[C, B], A, C]
    Definition Classes
    EitherOptics
  49. final def pStdRight[A, B, C]: PPrism[Either[A, B], Either[A, C], B, C]
    Definition Classes
    EitherOptics
  50. final def pSuccess[E, A, B]: PPrism[Validated[E, A], Validated[E, B], A, B]
    Definition Classes
    ValidatedOptics
  51. def pTheseLeft[A, B, C]: POptional[Ior[A, B], Ior[C, B], A, C]
    Definition Classes
    TheseOptics
  52. def pTheseRight[A, B, C]: POptional[Ior[A, B], Ior[A, C], B, C]
    Definition Classes
    TheseOptics
  53. final def pTrySuccess[A, B]: PPrism[Try[A], Try[B], A, B]
    Definition Classes
    TryOptics
  54. final def pValidatedToDisjunction[E1, E2, A1, A2]: PIso[Validated[E1, A1], Validated[E2, A2], Either[E1, A1], Either[E2, A2]]
    Definition Classes
    ValidatedOptics
  55. final def pVectorToNev[A, B]: PPrism[Vector[A], Vector[B], NonEmptyVector[A], NonEmptyVector[B]]
    Definition Classes
    NonEmptyVectorOptics
  56. final def some[A]: Prism[Option[A], A]
    Definition Classes
    OptionOptics
  57. final def stdLeft[A, B]: Prism[Either[A, B], A]
    Definition Classes
    EitherOptics
  58. final def stdRight[A, B]: Prism[Either[A, B], B]
    Definition Classes
    EitherOptics
  59. val stringToBoolean: Prism[String, Boolean]
    Definition Classes
    StringOptics
  60. val stringToByte: Prism[String, Byte]
    Definition Classes
    StringOptics
  61. val stringToInt: Prism[String, Int]
    Definition Classes
    StringOptics
  62. val stringToList: Iso[String, List[Char]]
    Definition Classes
    StringOptics
  63. val stringToLong: Prism[String, Long]
    Definition Classes
    StringOptics
  64. val stringToURI: Prism[String, URI]
    Definition Classes
    StringOptics
  65. val stringToURL: Prism[String, URL]
    Definition Classes
    PlatformSpecificStringOptics
  66. val stringToUUID: Prism[String, UUID]
    Definition Classes
    StringOptics
  67. final def success[E, A]: Prism[Validated[E, A], A]
    Definition Classes
    ValidatedOptics
  68. def theseLeft[A, B]: Optional[Ior[A, B], A]
    Definition Classes
    TheseOptics
  69. def theseRight[A, B]: Optional[Ior[A, B], B]
    Definition Classes
    TheseOptics
  70. def theseToDisjunction[A, B]: Prism[Ior[A, B], Either[A, B]]
    Definition Classes
    TheseOptics
  71. final def tryFailure[A]: Prism[Try[A], Throwable]
    Definition Classes
    TryOptics
  72. final def trySuccess[A]: Prism[Try[A], A]
    Definition Classes
    TryOptics
  73. def tuple1Iso[A]: Iso[(A), A]
    Definition Classes
    Tuple1Optics
  74. final def validationToDisjunction[E, A]: Iso[Validated[E, A], Either[E, A]]
    Definition Classes
    ValidatedOptics
  75. final def vectorToNev[A]: Prism[Vector[A], NonEmptyVector[A]]
    Definition Classes
    NonEmptyVectorOptics
  76. final def withDefault[A](defaultValue: A): Iso[Option[A], A]

    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
    Definition Classes
    OptionOptics
    See also

    This method is called non in Haskell Lens.