Is there an object that can be used as the functional inverse of "table/read interp"?
I'm creating a calibration program for a ribbon controller that has to sync my finger with a strip of one-cm spaced LED's, and I have a table that can take the number of centimeters your finger is on the ribbon and turn it into a voltage (I pressed my finger down every cm on the ribbon and recorded the voltages in a table). But I need to take the inverse of this function, to convert voltage to centimeters (on the ribbon), which is obviously more useful
Is there an object that I can use to do this? (The fact that my table is monotonically increasing ensures that an inverse exists for this table: so it might look like [1,2,3,6,8] but will never look like [1,1,2,2,3,3] or [5,3,2,6,8] etc.)