op-disjunction-functional | R Documentation |
Given two predicates, this operator combines them into one, new predicate. The new predicate calls the given predicates, applying "||" to the results.
p1 %or% p2
p1 |
A predicate of one argument |
p2 |
A predicate of one argument |
Typical usage within the Tau software would be
decl(x, is.null \%or\% is.numeric)
.
Returns a function, not a value. (Be careful.)
(is.null %or% is.numeric)(NULL)
(is.null %or% is.numeric)(pi)
(is.null %or% is.numeric)("foo")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.