Advertisement
Guest User

Untitled

a guest
Aug 4th, 2019
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.24 KB | None | 0 0
  1. (defmacro with-jsown-vals (obj vals &body body)
  2.   "Provides the passed jsown values as local variables within the scope to be used."
  3.   `(let ,(mapcar #'(lambda (key) (list (intern (string-upcase key)) (jsown:val obj key))) vals)
  4.      ,@body))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement