有一个函数叫做 asof,对于 asof(X, Y),返回 X 中不大于y的元素的最大序号。
a = [1,5,9,13,17] x = 0 7 11 18 asof(a, x) // output [-1,1,2,4]
可以将返回结果 + 1 作为其插入的位置