kmath
0.3.1-dev-RC
common
kmath-core
/
space.kscience.kmath.operations
/
fold
fold
inline
fun
<
T
,
R
>
Buffer
<
T
>
.
fold
(
initial
:
R
,
operation
:
(
acc
:
R
,
T
)
->
R
)
:
R
(
source
)
Fold given buffer according to
operation