def

func:is

is(val, spec)

Return if the given instance inherits from the spec via nominal typing. Use specIs() to check nominal typing between two types. Also see fits() and specFits() to check via structural typing.

Note that dict values will only match the generic sys.Dict type. Use fits() for structural type matching.

Examples:

is("hi", Str)       >>  true
is("hi", Dict)      >>  false
is({}, Dict)        >>  true
is({equip}, Equip)  >>  false
is(Str, Spec)       >>  true

meta

supertypes

feature

Feature namespace of definitions formatted as feature:name

    func

Axon function