core
0.23.5
js
core
/
de.peekandpoke.kraft.streams
/
StreamMapper
/
StreamMapper
Stream
Mapper
js
fun
<
WRAPPED
,
RESULT
>
StreamMapper
(
wrapped
:
Stream
<
WRAPPED
>
,
mapper
:
(
WRAPPED
)
->
RESULT
,
initial
:
(
)
->
RESULT
=
{ mapper(wrapped()) }
)
Parameters
WRAPPED
The value type of the wrapped stream
RESULT
The value type of the resulting stream