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
equals
Link copied to clipboard
common
open operator fun
equals
(other:
Any
?):
Boolean
Content copied to clipboard
fork
Link copied to clipboard
common
open override fun
fork
():
Chain
<
T
>
Content copied to clipboard
Create a copy of current chain state.
hashCode
Link copied to clipboard
common
open fun
hashCode
():
Int
Content copied to clipboard
next
Link copied to clipboard
common
open suspend override fun
next
():
T
Content copied to clipboard
Generate next value, changing state if needed
toString
Link copied to clipboard
common
open fun
toString
():
String
Content copied to clipboard
Properties
value
Link copied to clipboard
common
val
value
:
T
Content copied to clipboard