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