NewOpt wraps a label-type pair inside a StructType. fn:optional(/foo, /string)
(label, tpe ast.BaseTerm)
| 89 | // NewOpt wraps a label-type pair inside a StructType. |
| 90 | // fn:optional(/foo, /string) |
| 91 | func NewOpt(label, tpe ast.BaseTerm) ast.ApplyFn { |
| 92 | return newTypeExpr(Optional, label, tpe) |
| 93 | } |
| 94 | |
| 95 | // NewStructType returns a new StructType. |
| 96 | func NewStructType(args ...ast.BaseTerm) ast.ApplyFn { |