3 ms·
Yep. The right solution here is to make latitude and longitude distinct types. The way to turn that into an even wronger solution is to create a helper just_ap
by addaon 1y ago
Yep. The right solution here is to make latitude and longitude distinct types.
The way to turn that into an even wronger solution is to create a helper just_apply(function, lat, long) that passes the arguments to the function in the (hopefully unique) order that successfully works; so flip if needed, based on function’s type signature.