object State extends StateFunctions
- Source
- package.scala
- Alphabetic
- By Inheritance
- State
- StateFunctions
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- def apply[S, A](f: (S) => (S, A)): State[S, A]
- Definition Classes
- StateFunctions
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def empty[S, A](implicit A: Monoid[A]): State[S, A]
Return
A
's empty monoid value and maintain the input state.Return
A
's empty monoid value and maintain the input state.- Definition Classes
- StateFunctions
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def get[S]: State[S, S]
Return the input state without modifying it.
Return the input state without modifying it.
- Definition Classes
- StateFunctions
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def inspect[S, T](f: (S) => T): State[S, T]
Inspect a value from the input state, without modifying the state.
Inspect a value from the input state, without modifying the state.
- Definition Classes
- StateFunctions
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def modify[S](f: (S) => S): State[S, Unit]
Modify the input state and return Unit.
Modify the input state and return Unit.
- Definition Classes
- StateFunctions
- 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 pure[S, A](a: A): State[S, A]
Return
a
and maintain the input state.Return
a
and maintain the input state.- Definition Classes
- StateFunctions
- def set[S](s: S): State[S, Unit]
Set the state to
s
and return Unit.Set the state to
s
and return Unit.- Definition Classes
- StateFunctions
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()