returns an index of list's defined fields
k = definedfields(lst)
a list, tlist or mlist variable.
a vector of index.
If lst
is a list
, a tlist
, a mlist
k = definedfields(lst)
returns in k
the indices of the defined list fields. This function is useful because indexing undefined fields produces an error.