(lhs ref.Val, rhs ref.Val)
| 924 | } |
| 925 | |
| 926 | func inAggregate(lhs ref.Val, rhs ref.Val) ref.Val { |
| 927 | if rhs.Type().HasTrait(traits.ContainerType) { |
| 928 | return rhs.(traits.Container).Contains(lhs) |
| 929 | } |
| 930 | return types.ValOrErr(rhs, "no such overload") |
| 931 | } |
| 932 | |
| 933 | func function(name string, opts ...decls.FunctionOpt) *decls.FunctionDecl { |
| 934 | fn, err := decls.NewFunction(name, opts...) |