- Index
- »
- xeto
- »
- func:instance
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.
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