andrewvc/interrotron — pull request #1 by ricaurte (2012-06-05 01:32:57+00:00)
Title: Functions oh my

Hey Andrew,

It was great to meet you in person on Friday! Here's the pull request for adding the ability to have let, defn, lambda, setglobal, and expr, and I also added relevant tests for the functions and some helper functions I created as well. You'll now notice that there is a Interrotron#closure function that can be used to create a new closure with it's own variables and is destroyed upon exit of the function. I also modified apply, so that instead of sending a list of arguments, you can just send the arguments in the current list, ex: (apply (lambda (x y) (+ x y)) 5 4)

Let me know what you think about the additions and if there's anything you'd like modified, let me know!

Justin