[coll] nearest index match?

mharter's icon

Hello folks!

I am interested in finding data with the nearest index match (lower) than my query. I notice that coll returns the first record if the number does not match any currently held.

If I have to, I will come up with a loop that decrements the query number until it no longer returns a dummy first record. This approach will work, but will be very slow as the size of the coll grows.

Maybe coll is not the right tool for what I am trying to do, any suggestions?
Thanks!

MH

Chris Muir's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Perhaps maintain a funbuff in parallel to the coll?

mharter's icon

I had no idea how fun it can be, no wonder they called it that! Now all we need is funcoll.

Thanks much.
MH