Advertisement
Guest User

Untitled

a guest
Jan 14th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.30 KB | None | 0 0
  1. ;; some-funct-which-takes-stream-as-input is executed immediately but when it tries to read the forms below
  2. ;; get execute to provide it input
  3. (with-stream-redirection (out)
  4.     (some-func-which-takes-stream-as-input out)
  5.   (format out "foo")
  6.   (some-func-which-writes-to-out out)
  7.   (format out "bar"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement