Refactoring to Functional - Basic Primitives | Hacker News Reader