; Copyright 2008 Christopher Michael Rasch ; ; This file is part of Wishforge. ; Wishforge is free software: you can redistribute it and/or modify ; it under the terms of the GNU Affero General Public License as published by ; the Free Software Foundation, either version 3 of the License, or ; (at your option) any later version. ; Wishforge is distributed in the hope that it will be useful, ; but WITHOUT ANY WARRANTY; without even the implied warranty of ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ; GNU Affero General Public License for more details. ; You should have received a copy of the GNU Affero General Public License ; along with Wishforge. If not, see . (module util mzscheme (provide (all-defined)) (require (lib "list.ss")) (define splice-commas (lambda (items) (foldr (lambda (i accum) (if (eq? accum 'end) i (sa i "," accum))) 'end items))) (define sa string-append) (define double-quote (lambda (s) (sa "'" s "'"))) )