Why does this function work? | Hacker News Reader