Tag: Lisp
From Scheme to Common Lisp, A Syntax Reference
Lisp is quite common in Computer Science. As a nearly “syntax free” language, it is an excellent language for explaining computational concepts. Although it is quite common to see the Lisp dialect Scheme (or a equally trimmed down pseudo-lisp) used, there are some great texts written in Common Lisp, a few still in Emacs Lisp, [...]
PHP 5.3 Nowdoc Support
One of the missing things from PHP was the ability to have a multiline quote without evaluation. Sure, PHP came close with single quote marks ‘, but they required escaping. Heredoc syntax was a close second, but at minimum require escaping dollar signs $. Even output buffers, as phenomenal as a tool as they are, [...]
Breaking Through The Little Schemer multirember&co Wall
I hit the proverbial wall. Everything was going swimmingly in my read through The Little Schemer until I hit page 137 and the introduction of multirember&co. Though I had not been planning on referencing the internet, I had to admit temporary defeat and look for help wrapping my head around my first exposure to a [...]
Keeping CAR and CDR in Lisp Straight
If you’re like me and were exposed to Erlang and Haskell before Lisp, the acronymic functions CAR (return the head of a linked list) and CDR (return the tail of the linked list) won’t make a lot of sense. Why use cAr for the head, and cDr for the tail? Turns out the reason is [...]