daily pastebin goal
35%
SHARE
TWEET

Untitled

a guest May 17th, 2018 321 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Origin tap = dmacro(
  2.   [theCode]
  3.   theCode evaluateOn(self)
  4.   self
  5.   ,
  6.   [argName, theCode]
  7.   lexicalCode = LexicalBlock createFrom(list(argName, theCode), call ground)
  8.   lexicalCode call(self)
  9.   self
  10. )
  11.  
  12. ;; showing off both forms
  13. [1,2] tap(println) map(*2) tap(x, x println) map(x, x + 3) println
  14. ;; [1, 2]
  15. ;; [2, 4]
  16. ;; [5, 7]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top