zachallaun/FunctionalUtils.jl

Fix warnings

Opened this issue · 0 comments

When using/importing the package (running Julia v0.2.1), the following warnings appear:

Warning: New definition 
    map(Any,Zip{I<:(Any...,)}) at /home/user/.julia/v0.2/FunctionalUtils/src/FunctionalUtils.jl:142
is ambiguous with: 
    map(Union(DataType,Function),Any...) at reduce.jl:100.
To fix, define 
    map(Union(DataType,Function),Zip{I<:(Any...,)})
before the new definition.

and

Warning: New definition 
    map(Any,Dict{K,V}) at /home/user/.julia/v0.2/FunctionalUtils/src/FunctionalUtils.jl:144
is ambiguous with: 
    map(Union(DataType,Function),Any...) at reduce.jl:100.
To fix, define 
    map(Union(DataType,Function),Dict{K,V})
before the new definition.

I tried to do what they suggest, but failed as I'm unfamiliar with the type system.