dataforge-data
/
space.kscience.dataforge.data
/
foldToData
common
fold
To
Data
inline suspend fun <
T
:
Any
,
R
:
Any
>
Flow
<
NamedData
<
T
>>.
foldToData
(initial:
R
, coroutineContext:
CoroutineContext
= EmptyCoroutineContext, meta:
Meta
= Meta.EMPTY, noinline block: suspend (
R
, data:
NamedData
<
T
>) ->
R
):
Data
<
R
>
Content copied to clipboard
Fold a flow of named data into a single
Data
inline suspend fun <
T
:
Any
,
R
:
Any
>
DataSet
<
T
>.
foldToData
(initial:
R
, coroutineContext:
CoroutineContext
= EmptyCoroutineContext, meta:
Meta
= Meta.EMPTY, noinline block: suspend (
R
, data:
NamedData
<
T
>) ->
R
):
Data
<
R
>
Content copied to clipboard