R/utils.R

# list constructor
cons <- function (x, xs) {
  unlist(list (list(x), xs), recursive = F)
}

# list constructor
snoc <- function (xs, x) {
  unlist(list (xs, list(x)), recursive = F)
}

Try the hedgehog package in your browser

Any scripts or data that you put into this service are public.

hedgehog documentation built on May 2, 2019, 11:27 a.m.