final class StateLensOps[S, T, A, B] extends AnyVal
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- StateLensOps
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new StateLensOps(lens: PLens[S, T, A, B])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##(): Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def assign(b: B): IndexedState[S, T, B]
set the value viewed through the lens and returns its *new* value
- def assign_(b: B): IndexedState[S, T, Unit]
set the value viewed through the lens and ignores both values
- def assigno(b: B): IndexedState[S, T, A]
set the value viewed through the lens and returns its *old* value
- def extract: State[S, A]
extracts the value viewed through the lens
- def extracts[B](f: (A) => B): State[S, B]
extracts the value viewed through the lens and applies
f
over it - def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def mod(f: (A) => B): IndexedState[S, T, B]
modify the value viewed through the lens and returns its *new* value
- def mod_(f: (A) => B): IndexedState[S, T, Unit]
modify the value viewed through the lens and ignores both values
- def modo(f: (A) => B): IndexedState[S, T, A]
modify the value viewed through the lens and returns its *old* value
- def st: State[S, A]
alias for toState
- def toState: State[S, A]
transforms a PLens into a State
- def toString(): String
- Definition Classes
- Any