R/path.R

path <- function(fs) {
  # prevents lazy evaluation
  force(fs)
  if(length(fs) == 0 || is.null(fs))
    stop("the provided list of function is not valid (either empty or null)")
  Reduce(compose, fs)
}

Try the kriens package in your browser

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

kriens documentation built on May 1, 2019, 10:50 p.m.