https://kotlinlang.org logo
#feed
Title
# feed
y

Yugandhar

02/13/2020, 6:49 AM
What is the difference between arrayof and IntArrayof and intArrayOf in kotlin
a

altavir

02/13/2020, 6:54 AM
This is the wrong channel for the question, please go to #general
m

Margarita Bobova

02/13/2020, 12:02 PM
@Yugandhar Hello! arrayOf is a generic function which returns an array which contains elements consider the generic type: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/array-of.html intArrayOf is a function which returns array containing only Int numbers: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/int-array-of.html IntArray is a type equivalent java int[] : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int-array/index.html
y

Yugandhar

02/13/2020, 12:15 PM
Thakns now I understand some clear way
m

Matteo Mirk

02/13/2020, 3:00 PM
please in the future post this kind of questions in #getting-started or #general , thanks 🙂
20 Views