takePercentage

fun <T> List<T>.takePercentage(percentage: Double): List<T>

Takes the first percentage * size elements of the list.