negate: Standard function operator.

View source: R/8_function_operators.R

negateR Documentation

Standard function operator.

Description

Standard function operator.

Usage

negate(f)

Arguments

f

A function to be negated.

Details

Negate any function.

Examples

library(functionalPlayground)

always_true <- function(...) {
  return(TRUE)
}
always_false <- negate(always_true)
always_false(TRUE)
always_false(FALSE)

gmcmacran/functional_playground documentation built on Aug. 5, 2024, 7:40 a.m.