diff options
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -2758,6 +2758,16 @@ val listp(val obj) return if2(obj == nil || consp(obj), t); } +val endp(val obj) +{ + if (obj == nil) + return t; + if (consp(obj)) + return nil; + uw_throwf(error_s, lit("endp: list improperly terminated by ~s"), + obj, nao); +} + val proper_list_p(val obj) { while (consp(obj)) |