R Under development (unstable) (2025-02-12 r87715 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(flint) > > n <- 4L > x. <- y. <- z. <- seq_len(n) > names(y.) <- letters[ seq_len(n)] > names(z.) <- letters[n + seq_len(n)] > x <- .slong(x = x.) > y <- .slong(x = y.) > z <- .slong(x = z.) > > stopifnot(identical(length(x), n), + flintIdentical(`length<-`(x, 1L), + .slong(x = x.[1L])), + flintIdentical(`length<-`(y, 1L), + .slong(x = y.[1L])), + flintIdentical(`length<-`(x, n + n), + .slong(x = c(x., integer(n)))), + flintIdentical(`length<-`(y, n + n), + .slong(x = c(y., integer(n)))), + identical(x@names, character(0L)), + identical(names(x), NULL), + identical(y@names, names(y.)), + identical(names(y), names(y.)), + flintIdentical(`names<-`(x, NULL), x), + flintIdentical(`names<-`(y, NULL), x), + flintIdentical(`names<-`(x, names(z.)), z), + flintIdentical(`names<-`(y, names(z.)), z), + flintIdentical(`names<-`(x, character(0L)), + `names<-`(x, character(n))), + flintIdentical(`names<-`(x, "."), + `names<-`(x, c(".", character(n - 1L))))) > > proc.time() user system elapsed 0.34 0.04 0.39