5 ms·
Swapping variables around is also really handy for patterns like "alter list a until stable", especially with the walrus := operator allowing you to avoid decla
by babel_ 3y ago
Swapping variables around is also really handy for patterns like "alter list a until stable", especially with the walrus := operator allowing you to avoid declaring b outside of the while loop, keeping the intent clearer.