altos/lisp: remove nth from hanoi.lisp
authorKeith Packard <keithp@keithp.com>
Wed, 16 Nov 2016 04:25:03 +0000 (20:25 -0800)
committerKeith Packard <keithp@keithp.com>
Mon, 20 Feb 2017 19:16:51 +0000 (11:16 -0800)
It's now in ROM.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/test/ao_lisp_os.h
src/test/hanoi.lisp

index 8b9c1475cbea625bd4d58f8b0fce6d811e11ea62..dedcca28f7e5b051bfb287f79b7116c0fb3e6431 100644 (file)
@@ -23,7 +23,7 @@
 #include <time.h>
 
 #define AO_LISP_POOL_TOTAL     3072
-#define AO_LISP_SAVE
+#define AO_LISP_SAVE           1
 
 extern int ao_lisp_getc(void);
 
index 66a8d04bc6b4dbbec4757bf7e59722424ec1e5be..aece2ba0d5764bd1215689e6e4e7c4b3c464ad63 100644 (file)
        )
   )
 
-(defun nth (list n)
-  (cond ((= n 0) (car list))
-       ((nth (cdr list) (1- n)))
-       )
-  )
-
 ; Replace a stack in the list of stacks
 ; with a new value