Making an invertible function out of non-invertible parts | Hacker News Reader