Aggregate Function
or — logical OR of input values
Synopsis
or(bool) -> bool
Description
The or aggregate function computes the logical OR over all of its input.
Examples
Ored value of simple sequence:
# spq
or(this)
# input
false
true
false
# expected output
true
Unrecognized types are ignored and not coerced for truthiness:
# spq
or(this)
# input
false
"foo"
1
true
false
# expected output
true
OR of values grouped by key:
# spq
or(a) by k | sort
# input
{a:true,k:1}
{a:false,k:1}
{a:false,k:2}
{a:false,k:2}
# expected output
{k:1,or:true}
{k:2,or:false}