-- Leo's gemini proxy
-- Connecting to gemini.circumlunar.space:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini; charset=UTF-8; lang=en-US
I have quite a bit of trouble remembering what’s ascending and what’s descending. My notes:
Ascending:
return l - r;
if l < r: return -1; …
oldest first
a first, z last
Descending:
return r - l;
if l < r: return 1; …
newest first
z first, a last
⁂
James Kerr has a way to remember. His mnemonic is “on a number line, negative numbers come first, so if l − r is negative, that means l comes first”.
⏚
-- Response ended
-- Page fetched on Sat May 18 03:51:11 2024