https://kotlinlang.org logo
#kotlin-native
Title
# kotlin-native
b

Brian Donovan

10/29/2021, 2:32 AM
what does it mean when you are asked, What is a return type in Kotlin?
a

andylamax

10/30/2021, 2:26 AM
a return type is basically a type that gets returned by the function. e.g.
Copy code
fun say(): String {
  return "Hello World";
}
would return an object of type
String
when invoked. The object would contain the text " Hello World", but it is of type string
also, questions like these are better asked in #getting-started
5 Views