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.
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:To make use of the Python background, this should go in
evaluator.py
, not in the standard libraries. It wouldn't hurt to throw innth
andslice
here as well.