paginate

fun List<String>.paginate(pageLength: Int, separator: String = ""): List<String>

Tries to paginate this Strings (seperated by separator) into pages of pageLength with words in mind.

This function will try to not cut through single elements if the element does not exceed pageLength