io.sureshg.extn / kotlin.collections.List / indent

indent

fun List<String>.indent(col: Int, skip: Int = 0): List<String>

Prepend an empty string of size col to each string in the list by skipping first skip strings.

Parameters

skip - number of head elements to skip from indentation. Default to 0 if it's out of bound of list size 0..size