Rewrite loops using map, filter and reduce | Hacker News Reader