Solutions
Multiplatform
Server-side
Data science
Android
Docs
Community
Teach
Play
Playground
Examples
Koans
Kotlin libraries
Toggle table of contents
2.1
Select version
2.2
2.1
2.0
1.9
1.8
1.7
1.6
1.5
1.4
1.3
1.2
1.1
1.0
Common
Platform filter
Common
Switch theme
Search in API
Kotlin libraries
kotlin-stdlib
/
kotlin.collections
/
map
map
inline
fun
<
T
,
R
>
Array
<
out
T
>
.
map
(
transform
:
(
T
)
->
R
)
:
List
<
R
>
(
source
)
inline
fun
<
R
>
ByteArray
.
map
(
transform
:
(
Byte
)
->
R
)
:
List
<
R
>
(
source
)
inline
fun
<
R
>
ShortArray
.
map
(
transform
:
(
Short
)
->
R
)
:
List
<
R
>
(
source
)
inline
fun
<
R
>
IntArray
.
map
(
transform
:
(
Int
)
->
R
)
:
List
<
R
>
(
source
)
inline
fun
<
R
>
LongArray
.
map
(
transform
:
(
Long
)
->
R
)
:
List
<
R
>
(
source
)
inline
fun
<
R
>