UPDATE : recent versions of Kotlin allow you to perform several main functions even in one package (if they are in different files).
Your project may have several main functions, but only one main function for the package
The reason you cannot make several basic functions in a package is because all functions in a package are stored in the Package class, so you cannot have several functions in a class with the same signatures.
So, if you need some basic functions, you need to define em in different packages
source share