R/6_cumulative_logical_functions.R

#' Cumulative functions implemented in a functional style
#'
#' @param x A logical vector.
#' @details
#'
#' Functions leveraging map and a function operator.
#'
#' @examples
#' library(functionalPlayground)
#'
#' x <- c(TRUE, TRUE, FALSE, FALSE)
#' cumulative_all(x)
#' cumulative_any(x)
#' cumulative_none(x)
#' @export
cumulative_all <- cumulative_f(recursive_all)

#' @rdname cumulative_all
#' @export
cumulative_any <- cumulative_f(recursive_any)
gmcmacran/functional_playground documentation built on Aug. 5, 2024, 7:40 a.m.