def

func:instances

instances(scope: null, filter: null)

Lookup instances from Xeto libs as a list of dicts.

Scope may one of the following:

  • null: all instances from all libs currently in the using scope
  • lib: all instances declared in given library
  • list of lib: all instances in given libraries

If the filter is null, then it filters the instances from the scope.

Examples:

instances()                  // all instances in scope
specLib("icons").instances   // instances in a given library
instances(null, a and b)     // filter instances with filter expression

meta

supertypes

feature

Feature namespace of definitions formatted as feature:name

    func

Axon function