https://kotlinlang.org logo
e

Ellen Spertus

08/30/2022, 6:30 PM
Are there any functions besides
print()
and
println()
that can be called statically without a prior
import
?
r

Robert Jaros

08/30/2022, 6:34 PM
All functions from the packages imported by default https://kotlinlang.org/docs/packages.html#default-imports
🙏 1
e

Ellen Spertus

08/30/2022, 6:35 PM
Ah, now I know where the basic types come from.
I was hoping to find other functions of interest to very beginners, but they seem to be mostly extension functions, static factory methods, assertions, and more advanced things, like functions taking blocks.
s

Stephan Schroeder

08/30/2022, 9:32 PM
🙏 1
e

Ellen Spertus

08/30/2022, 11:32 PM
Thanks, @Stephan Schroeder. I'm looking for functions to have people try on their very first day of coding. I think I'll just have them import
kotlin.math.*
4 Views