What is the difference between arrayof and IntArra...
# feed
y
What is the difference between arrayof and IntArrayof and intArrayOf in kotlin
a
This is the wrong channel for the question, please go to #general
m
@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
Thakns now I understand some clear way
m
please in the future post this kind of questions in #getting-started or #general , thanks 🙂