[julia-users] Investigating instances of parametric types

2016-02-15 Thread jw3126
I have an instance of a parametric type, is there a canonical way to get the parameter values? For example I could have some Array{T, d} and want to know whether T is Float64 and what its dimension is. The only way of doing this I am aware of is writing code like: dimension{T, dim}(arr::Array{T,

Re: [julia-users] Investigating instances of parametric types

2016-02-15 Thread Mauro
> I have an instance of a parametric type, is there a canonical way to get > the parameter values? > For example I could have some Array{T, d} and want to know whether T is > Float64 and what its dimension is. > The only way of doing this I am aware of is writing code like: > > dimension{T, dim}(ar