kmath-coroutines
/
space.kscience.kmath.chains
/
ConstantChain
common
Constant
Chain
class
ConstantChain
<out
T
>(value:
T
) :
Chain
<
T
>
Content copied to clipboard
A chain that repeats the same value
Constructors
Functions
Properties
Constructors
ConstantChain
Link copied to clipboard
common
fun <out
T
>
ConstantChain
(value:
T
)
Content copied to clipboard
Functions
collect
Link copied to clipboard
common
open suspend override fun
collect
(collector:
FlowCollector
<
T
>)
Content copied to clipboard
fork
Link copied to clipboard
common
open suspend override fun
fork
():
Chain
<
T
>
Content copied to clipboard
Create a copy of current chain state.
next
Link copied to clipboard
common
open suspend override fun
next
():
T
Content copied to clipboard
Generate next value, changing state if needed
Properties
value
Link copied to clipboard
common
val
value
:
T
Content copied to clipboard