Thanks, Pablo & Matt! I was also looking at other operators, such as &, which apparently used to have a unary form, and still has a unary *method*, but gets an error if you try to do something like &55...
On Monday, June 1, 2015 at 6:53:03 PM UTC+2, Matt Bauman wrote: > > julia> methods(\, (Any,)) > 0-element Array{Any,1} > > julia> methods(+, (Any,)) > 5-element Array{Any,1}: > +(x::Bool) at bool.jl:33 > +(x::Number) at operators.jl:73 > +{T<:Number}(x::AbstractArray{T<:Number,N}) at abstractarray.jl:421 > +(x::Base.Dates.Instant) at dates/arithmetic.jl:4 > +(x::Base.Dates.TimeType) at dates/arithmetic.jl:8 > > (That is, there are none. `methods` currently supports types being passed > both in a tuple and as a Tuple type: `methods(+, Tuple{Any,})`) > > On Monday, June 1, 2015 at 12:41:15 PM UTC-4, Scott Jones wrote: >> >> What is the easiest way of finding out what the unary methods of an >> operator are (if any)? >> I did methods(\), and got 40 methods, but I really only want to see if >> there are any unary forms... >> Thanks, Scott >> >