Skip to content

Commit

Permalink
Too much code, add english description
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico authored Aug 29, 2024
1 parent b276a57 commit 986a661
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,7 @@ static inline bool equalLens(SEXP x) {
return true;
}

// setDT()-friendly rectangular list, i.e.
// is.list(x) && equalLens(x) && (!length(x) || !is.null(names(x)))
bool isDataList(SEXP x) {
return isNewList(x) && (!LENGTH(x) || (equalLens(x) && !isNull(getAttrib(x, R_NamesSymbol))));
Expand Down

0 comments on commit 986a661

Please sign in to comment.