chomp

inline fun String.chomp(separator: String, onMissingDelimiter: () -> Pair<String, String>): Pair<String, String>(source)

Splits the given string into two parts before and after separator.

Useful together with destructuring declarations

Report a problem