R/path.R

Defines functions path

Documented in path

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)
}
matteoprovenzano/kriens-r documentation built on May 21, 2019, 12:59 p.m.