adapt

fun adapt(args: List<Any?>, paramCount: Int): List<Any?>

Adapt a list of positional args to exactly paramCount (truncate extras, pad with nulls).