object State extends StateFunctions
- Source
- package.scala
- Alphabetic
- By Inheritance
- State
- StateFunctions
- 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
-
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( ... ) @native() @IntrinsicCandidate()
-
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: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
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() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
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(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )