takeFraction

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

Takes the first percentage * size elements of the list.