Hi!
Why does |>
has higher precedence than comparison and control flow operators?
Should |>
have precedence only higher than assignment operators?
julia> pdb_subset[:,:pfam] .== "PF00057" |> sum
ERROR: MethodError: no method matching +(::Char, ::Char)
Closest candidates are:
+(::Any, ::Any, ::Any, ::Any...) at operators.jl:138
+(::Char, ::Integer) at char.jl:40
+(::Integer, ::Char) at char.jl:41
in mapfoldl_impl(::Base.#identity, ::Base.#+, ::Char, ::String, ::Int64) at ./reduce.jl:46
in mapfoldl(::Base.#identity, ::Function, ::String) at ./reduce.jl:64
in |>(::String, ::Base.#sum) at ./operators.jl:350
julia> (pdb_subset[:,:pfam] .== "PF00057") |> sum
13
Best regards,