Great, thanks a lot. In fact, I also need to evaluate the number of arguments of an anonymous function:
julia> function factory(y)
return x -> x + y
end
factory (generic function with 1 method)
julia> type Foo
f::Function
end
julia> foo = Foo(factory(2))
Foo((anonymous function))
julia> methods(foo.f)
ERROR: ArgumentError: argument is not a generic function
in methods at reflection.jl:180
Any way to do that..?
