StateOptionalOps

monocle.state.StateOptionalOps
final class StateOptionalOps[S, T, A, B](optional: POptional[S, T, A, B]) extends AnyVal

Attributes

Deprecated
[Since version 3.0.0-M1]
Source:
StateOptionalSyntax.scala
Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Concise view

Value members

Deprecated methods

def assign(b: B): IndexedStateT[Eval, S, T, Option[B]]

set the value viewed through the Optional and returns its new value

set the value viewed through the Optional and returns its new value

Attributes

Deprecated
[Since version 3.0.0-M1]
Source:
StateOptionalSyntax.scala
def assign_(b: B): IndexedStateT[Eval, S, T, Unit]

set the value viewed through the Optional and ignores both values

set the value viewed through the Optional and ignores both values

Attributes

Deprecated
[Since version 3.0.0-M1]
Source:
StateOptionalSyntax.scala
def assigno(b: B): IndexedStateT[Eval, S, T, Option[A]]

set the value viewed through the Optional and return its old value, if there was one

set the value viewed through the Optional and return its old value, if there was one

Attributes

Deprecated
[Since version 3.0.0-M1]
Source:
StateOptionalSyntax.scala
def extract: State[S, Option[A]]

extracts the value viewed through the optional

extracts the value viewed through the optional

Attributes

Deprecated
[Since version 3.0.0-M1]
Source:
StateOptionalSyntax.scala
def extracts[B](f: A => B): State[S, Option[B]]

extracts the value viewed through the optional and applies f over it

extracts the value viewed through the optional and applies f over it

Attributes

Deprecated
[Since version 3.0.0-M1]
Source:
StateOptionalSyntax.scala
def mod(f: A => B): IndexedStateT[Eval, S, T, Option[B]]

modify the value viewed through the Optional and return its new value, if there is one

modify the value viewed through the Optional and return its new value, if there is one

Attributes

Deprecated
[Since version 3.0.0-M1]
Source:
StateOptionalSyntax.scala
def mod_(f: A => B): IndexedStateT[Eval, S, T, Unit]

modify the value viewed through the Optional and ignores both values

modify the value viewed through the Optional and ignores both values

Attributes

Deprecated
[Since version 3.0.0-M1]
Source:
StateOptionalSyntax.scala
def modo(f: A => B): IndexedStateT[Eval, S, T, Option[A]]

modify the value viewed through the Optional and return its old value, if there was one

modify the value viewed through the Optional and return its old value, if there was one

Attributes

Deprecated
[Since version 3.0.0-M1]
Source:
StateOptionalSyntax.scala
def st: State[S, Option[A]]

alias for toState

alias for toState

Attributes

Deprecated
[Since version 3.0.0-M1]
Source:
StateOptionalSyntax.scala
def toState: State[S, Option[A]]

transforms a POptional into a State

transforms a POptional into a State

Attributes

Deprecated
[Since version 3.0.0-M1]
Source:
StateOptionalSyntax.scala