tests/testthat/helpers-fastmap.R

# Get the environment from a fastmap/fastqueue/faststack object, so we can
# access internal objects.
env <- function(x) {
  environment(x$as_list)
}

# An empty named list is different from an empty unnamed list. This creates
# the former.
empty_named_list <- function() {
  list(a=1)[0]
}
wch/fastmap documentation built on May 17, 2024, 8:01 p.m.