"isstruct"?

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()

5 Likes

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.

This is useful. Thanks!

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().