Full threadcoldcode·I was just trying to figure exactly this, but gave up as I kept hitting a wall. Glad someone smarter than me worked this out.View on HN