takeFraction

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

Takes the first percentage * size elements of the list.