john-science / slowloris

A DIY-LISP.
5 stars 3 forks source link

Doubly Linked Lists #28

Closed john-science closed 10 years ago

john-science commented 10 years ago

Because this is running on top of Python's list class, the Slow Loris lists should have a way to get the last element as well as the first. Of course, this leads to a naming problem:

head : tail :: reverse-head : reverse-tail
head : tail :: rev-head : rev-tail
head : tail :: rhead : rtail

To make use of the Python background, this should go in evaluator.py, not in the standard libraries. It wouldn't hurt to throw in nth and slice here as well.