final class StateOptionalOps[S, T, A, B] extends AnyVal
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- StateOptionalOps
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new StateOptionalOps(optional: POptional[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, Option[B]]
set the value viewed through the Optional and returns its *new* value
- def assign_(b: B): IndexedState[S, T, Unit]
set the value viewed through the Optional and ignores both values
- def assigno(b: B): IndexedState[S, T, Option[A]]
set the value viewed through the Optional and return its *old* value, if there was one
- def extract: State[S, Option[A]]
extracts the value viewed through the optional
- def extracts[B](f: (A) => B): State[S, Option[B]]
extracts the value viewed through the optional 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, Option[B]]
modify the value viewed through the Optional and return its *new* value, if there is one
- def mod_(f: (A) => B): IndexedState[S, T, Unit]
modify the value viewed through the Optional and ignores both values
- def modo(f: (A) => B): IndexedState[S, T, Option[A]]
modify the value viewed through the Optional and return its *old* value, if there was one
- def st: State[S, Option[A]]
alias for toState
- def toState: State[S, Option[A]]
transforms a POptional into a State
- def toString(): String
- Definition Classes
- Any