def

func:fits

fits(val, spec)

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

Examples:

fits("foo", Str)      >>  true
fits(123, Str)        >>  false
fits({equip}, Equip)  >>  true
fits({equip}, Site)   >>  false

meta

supertypes

feature

Feature namespace of definitions formatted as feature:name

    func

Axon function