I am seeking a function which returns a platform-specific newline string.
I'm aware of System.lineSeparator()
, which is only available in Kotlin/JVM, but there's a need for a multi-platform equivalent.
I'm also aware of the expect
/actual
approach, but I'm searching for a shorter way. (Maybe a function in the standard library?)