Last active
October 3, 2019 00:28
-
-
Save brackendev/4861123cc91d79e3e8e40a5a1c233487 to your computer and use it in GitHub Desktop.
[Common Lisp] Land of Lisp with Clozure CL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; Page 120 | |
| (defun dot->png (fname thunk) | |
| (with-open-file (*standard-output* | |
| fname | |
| :direction :output | |
| :if-exists :supersede) | |
| (funcall thunk)) | |
| (ccl:run-program "/usr/local/bin/dot" (list "-Tpng" "-O" fname))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment