def

func:instance

instance(qname, checked: true)

Load or lookup a instance from a Xeto library by its string or ref qname as a Dict. If not found raise exception or return null based on checked flag.

NOTE: this function returns the instance using Haystack level fidelity

Examples:

instance("icons::apple")             // qname string
instance(@icons::apple)              // qname Ref id
instance("icons::bad-name")          // raises exception if not found
instance("icons::bad-name", false)   // unchecked returns null

meta

supertypes

feature

Feature namespace of definitions formatted as feature:name

    func

Axon function