StateTraversalOps

monocle.state.StateTraversalOps
final class StateTraversalOps[S, T, A, B](traversal: PTraversal[S, T, A, B]) extends AnyVal

Attributes

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

Members list

Concise view

Value members

Deprecated methods

def assign(b: B): IndexedState[S, T, List[B]]

set the values viewed through the traversal and returns its new values

set the values viewed through the traversal and returns its new values

Attributes

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

set the values viewed through the traversal and ignores both values

set the values viewed through the traversal and ignores both values

Attributes

Deprecated
[Since version 3.0.0-M1]
Source:
StateTraversalSyntax.scala
def assigno(b: B): IndexedState[S, T, List[A]]

set the values viewed through the traversal and returns its old values

set the values viewed through the traversal and returns its old values

Attributes

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

extracts the values viewed through the traversal

extracts the values viewed through the traversal

Attributes

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

extracts the values viewed through the traversal and applied f over it

extracts the values viewed through the traversal and applied f over it

Attributes

Deprecated
[Since version 3.0.0-M1]
Source:
StateTraversalSyntax.scala
def mod[F](f: A => B): IndexedState[S, T, List[B]]

modify the values viewed through the traversal and returns its new values

modify the values viewed through the traversal and returns its new values

Attributes

Deprecated
[Since version 3.0.0-M1]
Source:
StateTraversalSyntax.scala
def modF[F[_] : Applicative](f: A => F[B]): IndexedStateT[F, S, T, List[B]]

Attributes

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

modify the values viewed through the traversal and ignores both values

modify the values viewed through the traversal and ignores both values

Attributes

Deprecated
[Since version 3.0.0-M1]
Source:
StateTraversalSyntax.scala
def modo(f: A => B): IndexedState[S, T, List[A]]

modify the values viewed through the traversal and returns its old values

modify the values viewed through the traversal and returns its old values

Attributes

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

alias for toState

alias for toState

Attributes

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

transforms a PTraversal into a State

transforms a PTraversal into a State

Attributes

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