diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2019-06-25 07:35:54 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2019-06-25 07:35:54 -0700 |
commit | 532fecd96ea8256846c6c2b6b8fecad83b21c4e3 (patch) | |
tree | 40fe5c7988ff0a9475feb87a5c9f702a50443775 | |
parent | 87945557de850fbea3a6b9541f47f6c71eb6c114 (diff) | |
download | txr-532fecd96ea8256846c6c2b6b8fecad83b21c4e3.tar.gz txr-532fecd96ea8256846c6c2b6b8fecad83b21c4e3.tar.bz2 txr-532fecd96ea8256846c6c2b6b8fecad83b21c4e3.zip |
empty: handle carray.
* lib.c (empty): Add carray sub case to COBJ case.
-rw-r--r-- | lib.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -9989,6 +9989,8 @@ val empty(val seq) case COBJ: if (seq->co.cls == hash_s) return eq(hash_count(seq), zero); + if (seq->co.cls == carray_s) + return eq(length_carray(seq), zero); if (obj_struct_p(seq)) { val length_meth = maybe_slot(seq, length_s); val nullify_meth = if2(nilp(length_meth), maybe_slot(seq, nullify_s)); |