| 108 | static bool IsMaterialized(SEXP alt) { return !Rf_isNull(Impl::Representation(alt)); } |
| 109 | |
| 110 | static R_xlen_t Length(SEXP alt) { |
| 111 | if (IsMaterialized(alt)) { |
| 112 | return Rf_xlength(Representation(alt)); |
| 113 | } else { |
| 114 | return GetChunkedArray(alt)->length(); |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | static int No_NA(SEXP alt) { |
| 119 | if (IsMaterialized(alt)) { |