Skip to content

Instantly share code, notes, and snippets.

@edw
Created May 5, 2011 18:03
Show Gist options
  • Select an option

  • Save edw/957539 to your computer and use it in GitHub Desktop.

Select an option

Save edw/957539 to your computer and use it in GitHub Desktop.
Write each string
(define-syntax wes
(syntax-rules ()
((_ p s)
(write-string s p))
((_ p s t ...)
(let ((nbytes (write-string s p)))
(+ nbytes (wes p t ...))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment