StateLensOps

@deprecated("no replacement", since = "3.0.0-M1") final class StateLensOps[S, T, A, B](lens: PLens[S, T, A, B]) extends AnyVal
Deprecated
[Since version 3.0.0-M1]
Source
StateLensSyntax.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, B]

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

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

Deprecated
[Since version 3.0.0-M1]
Source
StateLensSyntax.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 lens and ignores both values

set the value viewed through the lens and ignores both values

Deprecated
[Since version 3.0.0-M1]
Source
StateLensSyntax.scala
@deprecated("no replacement", since = "3.0.0-M1")
def assigno(b: B): IndexedStateT[[A] =>> Eval[A], S, T, A]

set the value viewed through the lens and returns its old value

set the value viewed through the lens and returns its old value

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

extracts the value viewed through the lens

extracts the value viewed through the lens

Deprecated
[Since version 3.0.0-M1]
Source
StateLensSyntax.scala
@deprecated("no replacement", since = "3.0.0-M1")
def extracts[B](f: A => B): State[S, B]

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

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

Deprecated
[Since version 3.0.0-M1]
Source
StateLensSyntax.scala
@deprecated("no replacement", since = "3.0.0-M1")
def mod(f: A => B): IndexedStateT[[A] =>> Eval[A], S, T, B]

modify the value viewed through the lens and returns its new value

modify the value viewed through the lens and returns its new value

Deprecated
[Since version 3.0.0-M1]
Source
StateLensSyntax.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 lens and ignores both values

modify the value viewed through the lens and ignores both values

Deprecated
[Since version 3.0.0-M1]
Source
StateLensSyntax.scala
@deprecated("no replacement", since = "3.0.0-M1")
def modo(f: A => B): IndexedStateT[[A] =>> Eval[A], S, T, A]

modify the value viewed through the lens and returns its old value

modify the value viewed through the lens and returns its old value

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

alias for toState

alias for toState

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

transforms a PLens into a State

transforms a PLens into a State

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