I have a list of GPS coordinates. I also have a function which compares two GPS coordinates and calculates a value.
I know I can create a nested loop to run the function on every pair, but this seem inelegant.
Is there a recommended way to run a comparison function on items in a list?
Thanks.