0
I have two lists. Both are sorted lists of numbers. Say:
A = [1.1, 5.2, 12.3, 12.6]
B = [2.3, 2.7, 5.2, 11.1, 12.1, 15.6, 16.6]
For each number in A I find the nearest value in B. E.g.
1.1 -> 2.3
5.2 -> 5.2
12.3 -> 12.1
12.6 -> 12.1
I would now like to split B into a list of lists using t...