Methods

inΒΆ

in(attr:Str, obj:NormalTypeInstance)

Check whether NormalType (a type that is typically defined by user) instance has an attribute.

Returns

Bool

Example

type T; t=T(); t.x=1; "x" in t  # true