how could I identity if a Type is a composite type, i.e., something that could be getfield()
? e.g. by a isstruct()
function?
thanks.
oh, sorry for the post. The answer is: Base.isstructtype()
how could I identity if a Type is a composite type, i.e., something that could be getfield()
? e.g. by a isstruct()
function?
thanks.
oh, sorry for the post. The answer is: Base.isstructtype()
I’d say no need to say sorry cos u r actually helping ppl who will inevitably google this same question sometime in the future.
btw, I think a better string matching algorithm could be employed as I searched “isstruct” in docs.julialang.org but it does not show up anything about isstructtype()
.