From bcc1d7745c333797ac83d918f27466bcd72841c9 Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Thu, 29 Aug 2024 11:21:14 -0700 Subject: [PATCH] Describe in english --- src/utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils.c b/src/utils.c index 34da9ddc1..4e6bcf258 100644 --- a/src/utils.c +++ b/src/utils.c @@ -489,7 +489,8 @@ bool isDataTable(SEXP x) { return INHERITS(x, char_datatable); } -// length(x) <= 1L || length(unique(lengths(x))) ==1L +// rectangular list; NB does not allow length-1 recycling +// length(x) <= 1L || length(unique(lengths(x))) == 1L static inline bool equalLens(SEXP x) { int n = LENGTH(x); if (n < 2)