op-disjunction-functional: Combine two predicates

op-disjunction-functionalR Documentation

Combine two predicates

Description

Given two predicates, this operator combines them into one, new predicate. The new predicate calls the given predicates, applying "||" to the results.

Usage

p1 %or% p2

Arguments

p1

A predicate of one argument

p2

A predicate of one argument

Details

Typical usage within the Tau software would be decl(x, is.null %or% is.numeric).

Value

Returns a function, not a value. (Be careful.)

Examples

(is.null %or% is.numeric)(NULL)
(is.null %or% is.numeric)(pi)
(is.null %or% is.numeric)("foo")


pteetor/tutils documentation built on April 25, 2024, 9:14 a.m.