StateOptionalOps

@deprecated("no replacement", since = "3.0.0-M1") final class StateOptionalOps[S, T, A, B](optional: POptional[S, T, A, B]) extends AnyVal
Deprecated
[Since version 3.0.0-M1]
Source
StateOptionalSyntax.scala
class AnyVal
trait Matchable
class Any

Value members

Deprecated methods

@deprecated("no replacement", since = "3.0.0-M1")
def assign(b: B): IndexedStateT[[A] =>> Eval[A], 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

Deprecated
[Since version 3.0.0-M1]
Source
StateOptionalSyntax.scala
@deprecated("no replacement", since = "3.0.0-M1")
def assign_(b: B): IndexedStateT[[A] =>> Eval[A], 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

Deprecated
[Since version 3.0.0-M1]
Source
StateOptionalSyntax.scala
@deprecated("no replacement", since = "3.0.0-M1")
def assigno(b: B): IndexedStateT[[A] =>> Eval[A], 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

Deprecated
[Since version 3.0.0-M1]
Source
StateOptionalSyntax.scala
@deprecated("no replacement", since = "3.0.0-M1")
def extract: State[S, Option[A]]

extracts the value viewed through the optional

extracts the value viewed through the optional

Deprecated
[Since version 3.0.0-M1]
Source
StateOptionalSyntax.scala
@deprecated("no replacement", since = "3.0.0-M1")
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

Deprecated
[Since version 3.0.0-M1]
Source
StateOptionalSyntax.scala
@deprecated("no replacement", since = "3.0.0-M1")
def mod(f: A => B): IndexedStateT[[A] =>> Eval[A], 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

Deprecated
[Since version 3.0.0-M1]
Source
StateOptionalSyntax.scala
@deprecated("no replacement", since = "3.0.0-M1")
def mod_(f: A => B): IndexedStateT[[A] =>> Eval[A], 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

Deprecated
[Since version 3.0.0-M1]
Source
StateOptionalSyntax.scala
@deprecated("no replacement", since = "3.0.0-M1")
def modo(f: A => B): IndexedStateT[[A] =>> Eval[A], 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

Deprecated
[Since version 3.0.0-M1]
Source
StateOptionalSyntax.scala
@deprecated("no replacement", since = "3.0.0-M1")
def st: State[S, Option[A]]

alias for toState

alias for toState

Deprecated
[Since version 3.0.0-M1]
Source
StateOptionalSyntax.scala
@deprecated("no replacement", since = "3.0.0-M1")
def toState: State[S, Option[A]]

transforms a POptional into a State

transforms a POptional into a State

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