StateLensOps

monocle.state.StateLensOps
final class StateLensOps[S, T, A, B](lens: PLens[S, T, A, B]) extends AnyVal

Attributes

Deprecated
[Since version 3.0.0-M1]
Source:
StateLensSyntax.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, 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

Attributes

Deprecated
[Since version 3.0.0-M1]
Source:
StateLensSyntax.scala
def assign_(b: B): IndexedStateT[Eval, 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

Attributes

Deprecated
[Since version 3.0.0-M1]
Source:
StateLensSyntax.scala
def assigno(b: B): IndexedStateT[Eval, 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

Attributes

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

extracts the value viewed through the lens

extracts the value viewed through the lens

Attributes

Deprecated
[Since version 3.0.0-M1]
Source:
StateLensSyntax.scala
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

Attributes

Deprecated
[Since version 3.0.0-M1]
Source:
StateLensSyntax.scala
def mod(f: A => B): IndexedStateT[Eval, 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

Attributes

Deprecated
[Since version 3.0.0-M1]
Source:
StateLensSyntax.scala
def mod_(f: A => B): IndexedStateT[Eval, 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

Attributes

Deprecated
[Since version 3.0.0-M1]
Source:
StateLensSyntax.scala
def modo(f: A => B): IndexedStateT[Eval, 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

Attributes

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

alias for toState

alias for toState

Attributes

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

transforms a PLens into a State

transforms a PLens into a State

Attributes

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