RandomChain

class RandomChain<out R>(generator: RandomGenerator, gen: suspend RandomGenerator.() -> R) : Chain<R>

A possibly stateful chain producing random values.

Constructors

RandomChain
Link copied to clipboard
common
fun <out R> RandomChain(generator: RandomGenerator, gen: suspend RandomGenerator.() -> R)

Functions

collect
Link copied to clipboard
common
open suspend override fun collect(collector: FlowCollector<R>)
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
fork
Link copied to clipboard
common
open override fun fork(): Chain<R>
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
next
Link copied to clipboard
common
open suspend override fun next(): R
toString
Link copied to clipboard
common
open fun toString(): String

Properties

generator
Link copied to clipboard
common
val generator: RandomGenerator