unsafe fn logical_iter_to_lglsxp_unchecked( n: usize, iter: impl Iterator<Item = i32>, ) -> SEXP
Helper: allocate LGLSXP and fill from an i32 iterator (unchecked).