diff --git a/base/operators.jl b/base/operators.jl index c572026fcba76..976a18d10fce5 100644 --- a/base/operators.jl +++ b/base/operators.jl @@ -331,10 +331,12 @@ eltype(x) = eltype(typeof(x)) # function pipelining, composition & negation |>(x, f) = f(x) - ∘(f, g) = (x...)->f(g(x...)) !(f::Function) = (x...)->!f(x...) +|(f::Function, g::Function) = (x...)->f(x...) || g(x...) +(&)(f::Function, g::Function) = (x...)->f(x...) && g(x...) +($)(f::Function, g::Function) = (x...)->f(x...) $ g(x...) # array shape rules