`list.withIndex().partition { it.index < 4 }.ma...
# stdlib
m
list.withIndex().partition { it.index < 4 }.map { it.value }