- Index
- »
- xeto
- »
- func:specOf
def
func:specOf
specOf(val, checked: true)
Return the Xeto spec of the given value. Raise exception if value type is not mapped into the data type system. Also see is()
and fits()
.
Examples:
specOf("hi") >> sys::Str specOf(@id) >> sys::Ref specOf({}) >> sys::Dict specOf({spec:@ph::Equip}) >> ph::Dict