diff options
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -408,6 +408,13 @@ loc tail(val cons) return cdr_l(cons); } +loc term(loc head) +{ + while (consp(deref(head))) + head = cdr_l(deref(head)); + return head; +} + loc lastcons(val list) { loc ret = nulloc; |