ApiResult
Toggle table of contents
common
Platform filter
common
Switch theme
Search in API
ApiResult
core
/
pro.respawn.apiresult
/
mapResults
map
Results
infix inline
fun
<
T
,
R
>
Iterable
<
ApiResult
<
T
>
>
.
mapResults
(
transform
:
(
T
)
->
R
)
:
List
<
ApiResult
<
R
>
>
infix inline
fun
<
T
,
R
>
Sequence
<
ApiResult
<
T
>
>
.
mapResults
(
crossinline
transform
:
(
T
)
->
R
)
:
Sequence
<
ApiResult
<
R
>
>
Maps every item of
this
using
transform
inline
fun
<
T
,
R
>
Flow
<
ApiResult
<
T
>
>
.
mapResults
(
crossinline
transform
:
suspend
(
T
)
->
R
)
:
Flow
<
ApiResult
<
R
>
>
Maps each success value of
this
flow using
transform