final
case class
StateGen[State, Gen[_], A](run: (State) ⇒ Gen[(State, A)]) extends Product with Serializable
Instance Constructors
-
new
StateGen(run: (State) ⇒ Gen[(State, A)])
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
-
def
finalize(): Unit
-
def
flatMap[B](fn: (A) ⇒ StateGen[State, Gen, B])(implicit GM: GenMonad[Gen]): StateGen[State, Gen, B]
-
final
def
getClass(): Class[_]
-
final
def
isInstanceOf[T0]: Boolean
-
def
map[B](f: (A) ⇒ B)(implicit GM: GenMonad[Gen]): StateGen[State, Gen, B]
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
val
run: (State) ⇒ Gen[(State, A)]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
widen[B >: A](implicit GM: GenMonad[Gen]): StateGen[State, Gen, B]
Wraps a function that takes a function an produces a random state transition and value
the type of the initial and resulting state of this random computation
the random context that wraps the return value of this function
the type of the value returned by this function