In Julia, what is the best way to determine if an object is callable? (For example, is there an analogue of the python function callable ?)
EDIT: Here, one would wish:
f() = println("Hi") x = [1,2,3] a = 'A' callable(f) # => true callable(x) # => false callable(a) # => false callable(sin) # => true
source share