Got collapse (my version of inject) down to 7 lines.