I have a list of 1000 numbers called “sequence” and a function “dist” that calculates the distance between two numbers.
I am trying to create a table of distances between terms, but ignoring the terms
for all $i$.
How can I change the code
In order to ignore the distances between a term and itself?