lib

lib:xeto

Xeto spec and data function library

meta

funcs

choiceOf

Given a choice spec, return the most specific choice subtype implemented by the instance

fits

Return if the given instance fits the spec via structural typing

fitsExplain

Return grid which explains how data fits the given spec

fitsMatchAll

Match dict recs against specs to find all the specs that fit

instance

Load or lookup a instance from a Xeto library by its string or ref qname as a Dict

instances

Lookup instances from Xeto libs as a list of dicts

instantiate

Create the default instance for a given spec

is

Return if the given instance inherits from the spec via nominal typing

query

Evaluate a relationship query and return record dict

queryAll

Evaluate a relationship query and return grid of results

queryNamed

Evaluate a relationship query and return the named constraints as a dict

spec

Load or lookup a Xeto spec by its string or ref qname

specBase

Base spec from which the given spec directly inherits

specFits

Return if spec a fits spec b based on structural typing

specFitsExplain

Return a grid explaining why spec a does not fit b

specIs

Return if spec a inherits from spec b based on nominal typing

specLib

Load or lookup a Xeto library by its string or ref name

specLibs

List Xeto libraries as a list of their dict representation

specMeta

Get the spec's effective declared meta-data as dict

specMetaOwn

Get the spec's own declared meta-data as dict

specName

Return simple name of spec

specOf

Return the Xeto spec of the given value

specParent

Parent spec which contains given spec and scopes its name

specQName

Return fully qualified name of the spec

specSlots

Get the effective children slots as a dict of Specs

specSlotsOwn

Get the spec's declared children slots as dict of Specs

specType

Data type of the spec

specs

List Xeto specs as a list of their dict representation