Scheme: Procedures that return another inner procedure (stackoverflow.com)