object state extends StateCreation with StateInterpretation with StateImplicits
- Source
- state.scala
- Alphabetic
- By Inheritance
- state
- StateImplicits
- StateInterpretation
- StateCreation
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
evalState[R, U, S, A](initial: S)(w: Eff[R, A])(implicit m: Aux[[β$1$]IndexedStateT[Eval, S, S, β$1$], R, U]): Eff[U, A]
run a state effect, with an initial value, return only the value
run a state effect, with an initial value, return only the value
- Definition Classes
- StateInterpretation
-
def
evalStateZero[R, U, S, A](w: Eff[R, A])(implicit arg0: Monoid[S], m: Aux[[β$0$]IndexedStateT[Eval, S, S, β$0$], R, U]): Eff[U, A]
run a state effect, with a Monoidal state
run a state effect, with a Monoidal state
- Definition Classes
- StateInterpretation
-
def
execState[R, U, S, A](initial: S)(w: Eff[R, A])(implicit m: Aux[[β$3$]IndexedStateT[Eval, S, S, β$3$], R, U]): Eff[U, S]
run a state effect, with an initial value, return only the state
run a state effect, with an initial value, return only the state
- Definition Classes
- StateInterpretation
-
def
execStateZero[R, U, S, A](w: Eff[R, A])(implicit arg0: Monoid[S], m: Aux[[β$2$]IndexedStateT[Eval, S, S, β$2$], R, U]): Eff[U, S]
run a state effect, with a monoidal state, return only the state
run a state effect, with a monoidal state, return only the state
- Definition Classes
- StateInterpretation
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
get[R, S](implicit member: |=[[β$2$]IndexedStateT[Eval, S, S, β$2$], R]): Eff[R, S]
get the current state value
get the current state value
- Definition Classes
- StateCreation
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
gets[R, S, T](f: (S) ⇒ T)(implicit member: |=[[β$4$]IndexedStateT[Eval, S, S, β$4$], R]): Eff[R, T]
get the current state value and map it with a function f
get the current state value and map it with a function f
- Definition Classes
- StateCreation
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
intoState[TS, SS, U1, U2, T, S, A](state: Eff[TS, A], getter: (S) ⇒ T, setter: (S, T) ⇒ S)(implicit ts: Aux[[β$10$]IndexedStateT[Eval, T, T, β$10$], TS, U1], ss: Aux[[β$11$]IndexedStateT[Eval, S, S, β$11$], SS, U2], into: IntoPoly[U1, U2]): Eff[SS, A]
General lifting of a state effect into another from one stack to another.
General lifting of a state effect into another from one stack to another. This will require a type annotation
- Definition Classes
- StateInterpretation
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
lensState[TS, SS, U, T, S, A](state: Eff[TS, A], getter: (S) ⇒ T, setter: (S, T) ⇒ S)(implicit ts: Aux[[β$8$]IndexedStateT[Eval, T, T, β$8$], TS, U], ss: Aux[[β$9$]IndexedStateT[Eval, S, S, β$9$], SS, U]): Eff[SS, A]
Lift a computation over a "small" state (for a subsystem) into a computation over a "bigger" state (for the full application state)
Lift a computation over a "small" state (for a subsystem) into a computation over a "bigger" state (for the full application state)
- Definition Classes
- StateInterpretation
-
def
localState[R, S, A](e: Eff[R, A])(modify: (S) ⇒ S)(implicit s: /=[[β$16$]IndexedStateT[Eval, S, S, β$16$], R]): Eff[R, A]
Update the state value, the stack of the Eff computation stays the same
Update the state value, the stack of the Eff computation stays the same
- Definition Classes
- StateInterpretation
-
def
modify[R, S](f: (S) ⇒ S)(implicit member: |=[[β$6$]IndexedStateT[Eval, S, S, β$6$], R]): Eff[R, Unit]
modify the current state value
modify the current state value
- Definition Classes
- StateCreation
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
put[R, S](s: S)(implicit member: |=[[β$0$]IndexedStateT[Eval, S, S, β$0$], R]): Eff[R, Unit]
store a new state value
store a new state value
- Definition Classes
- StateCreation
-
def
readerToStateNat[S1]: ~>[[β$4$]Kleisli[[A]A, S1, β$4$], [β$5$]IndexedStateT[Eval, S1, S1, β$5$]]
- Definition Classes
- StateImplicits
-
def
runState[R, U, S1, A](initial: S1)(w: Eff[R, A])(implicit m: Aux[[β$5$]IndexedStateT[Eval, S1, S1, β$5$], R, U]): Eff[U, (A, S1)]
run a state effect, with an initial value
run a state effect, with an initial value
- Definition Classes
- StateInterpretation
-
def
runStateZero[R, U, S, A](w: Eff[R, A])(implicit arg0: Monoid[S], m: Aux[[β$4$]IndexedStateT[Eval, S, S, β$4$], R, U]): Eff[U, (A, S)]
run a state effect, with an initial value
run a state effect, with an initial value
- Definition Classes
- StateInterpretation
-
implicit
def
stateMemberInLens[E, S, T](implicit m: MemberIn[[β$2$]IndexedStateT[Eval, S, S, β$2$], E], get: (S) ⇒ T, set: (T) ⇒ (S) ⇒ S): MemberIn[[β$3$]IndexedStateT[Eval, T, T, β$3$], E]
- Definition Classes
- StateImplicits
-
implicit
def
stateMemberInToReaderMemberIn[E, S](implicit m: MemberIn[[β$0$]IndexedStateT[Eval, S, S, β$0$], E]): MemberIn[[β$1$]Kleisli[[A]A, S, β$1$], E]
- Definition Classes
- StateImplicits
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
via[S, T](get: (S) ⇒ T, set: (T) ⇒ (S) ⇒ S): ~>[[β$8$]IndexedStateT[Eval, T, T, β$8$], [β$9$]IndexedStateT[Eval, S, S, β$9$]]
- Definition Classes
- StateImplicits
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()