Guest User

Untitled

a guest
Apr 25th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. (defmacro or
  2. "Evaluates exprs one at a time, from left to right. If a form
  3. returns a logical true value, or returns that value and doesn't
  4. evaluate any of the other expressions, otherwise it returns the
  5. value of the last expression. (or) returns nil."
  6. ([] nil)
  7. ([x] x)
  8. ([x & next]
  9. `(let [or# ~x]
  10. (if or# or# (or ~@next)))))
Add Comment
Please, Sign In to add comment