Thanks, I managed to figure it out by re-re-re-reading the docs. I was
suspecting that the answer will be about parametric types.
function df_to_m{T<:Jinnie.Jinnie_Model}(df::DataFrames.DataFrame, m::T) #
works!
sâmbătă, 27 februarie 2016, 09:31:23 UTC+1, Adrian Salceanu a scris:
>
> Hi,
>
Still not sure though how to go about using the actual types as params,
rather than an instance of that type.
sâmbătă, 27 februarie 2016, 14:56:47 UTC+1, Adrian Salceanu a scris:
>
> Thanks, I managed to figure it out by re-re-re-reading the docs. I was
> suspecting that the answer will be
Thanks, I managed to figure it out by re-re-re-reading the docs. I was
suspecting that the answer will be about parametric types.
function df_to_m{T<:Jinnie.Jinnie_Model}(df::DataFrames.DataFrame, m::T) #
works!
Is this the only way? I'm fine with it (it's very explicit upon reading)
but