I was wondering, is there a quick julia way to get the length of an enum type? For example, something like @enum P n h m l
and then len(P) or length(P) would return 3?

EDIT: one more side note, I do not quite understand why did this enum type start counting from 0, not from 1? I thought Julia is more matlab/math friendly, by that I mean it usually gets counting from 1, not 0, right?

@mauro3, I tested it. It looks that instancesÂ§ would return a tuple of all the enumerated elements. And length(instancesÂ§) would return the length of that tuple, which is the length needed.
Thank you both so much for the clarification. This makes Julia learning a much better experience. @nilshg, @mauro3