atOrBefore

fun <T> atOrBefore(samples: List<Pair<Long, T>>, time: Long): Pair<Long, T>?

The last sample at or before time, else the first one after it.