3 ms·
BONUS FUN: If you want to play around with lisp interactively, I reccomend checking out the program Emacs. It's a little lisp interpreter written in C, that co
by yjgyhj 11y ago
BONUS FUN:
If you want to play around with lisp interactively, I reccomend checking out the program Emacs. It's a little lisp interpreter written in C, that comes with a text editor and such. Download it and run it. When you write some lisp code into the editor, place your cursor after the expression and hit Ctrl-x Ctrl-e. That is read, eval and apply what the expression, and display the result in the bottom of them window.
Here is a screenshot of me doing that with this code (apply (quote +) (quote (1 2))) ;; http://i.imgur.com/SrhMxS8.png http://i.imgur.com/SrhMxS8.png
Play around with that - it's fun enough for an evening.
Some other fun code to run is this
(reduce '+ '(1 2 3 4))
(defun say-hello (&optional name) ;; a wild lambda appeared!
(if (stringp name)
(concat "hello " name)
"I'm a lonely program"))
(say-hello "Martin")
(say-hello)