3 ms·
A function still seems appropriate even if you're not using this multiple times. Unless how you're computing the haversine distance is relevant to the surroundi
by panopticon 5y ago
A function still seems appropriate even if you're not using this multiple times. Unless how you're computing the haversine distance is relevant to the surrounding code, it would be much more readable to extract it out.