- Index
- »
- xeto
- »
- func:specIs
def
func:specIs
specIs(a, b)
Return if spec a
inherits from spec b
based on nominal typing. This method checks the explicit inheritance hierarchy via specBase()
. Use is()
to check if an instance is of a given type. Also see fits()
and specFits()
to check using structural typing.
Examples:
specIs(Str, Scalar) >> true specIs(Scalar, Scalar) >> false specIs(Equip, Dict) >> true specIs(Meter, Equip) >> true specIs(Meter, Point) >> false