Advertisement
Guest User

Untitled

a guest
Feb 11th, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.18 KB | None | 0 0
  1. (defun kotlin-with-open-file (filespec options body)
  2.   (let ((stream (apply #'open filespec options)))
  3.     (unwind-protect
  4.          (funcall body stream)
  5.       (close stream))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement