StateGetterOps

monocle.state.StateGetterOps
final class StateGetterOps[S, A](getter: Getter[S, A]) extends AnyVal

Attributes

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

Members list

Concise view

Value members

Deprecated methods

def extract: State[S, A]

extracts the value viewed through the getter

extracts the value viewed through the getter

Attributes

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

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

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

Attributes

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

alias for toState

alias for toState

Attributes

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

transforms a Getter into a State

transforms a Getter into a State

Attributes

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