- Index
- »
- xeto
- »
- func:specFits
def
func:specFits
specFits(a, b)
Return if spec a
fits spec b
based on structural typing. Use fits()
to check if an instance fits a given type. Also see is()
and specIs()
to check using nominal typing.
Examples:
specFits(Meter, Equip) >> true specFits(Meter, Point) >> false