Hacker News new | ask | show | jobs
by minaguib 275 days ago
Entirely unrelated to the topic, but my mind was blown when I recently learnt that clamp() can be implemented via .median(val, low, high), and the param order doesn't matter!