NewFunType returns a new function type. Res <- Arg1, ..., ArgN
(res ast.BaseTerm, args ...ast.BaseTerm)
| 100 | // NewFunType returns a new function type. |
| 101 | // Res <- Arg1, ..., ArgN |
| 102 | func NewFunType(res ast.BaseTerm, args ...ast.BaseTerm) ast.ApplyFn { |
| 103 | return newTypeExpr(FunType, append([]ast.BaseTerm{res}, args...)...) |
| 104 | } |
| 105 | |
| 106 | // NewRelType returns a new relation type. |
| 107 | func NewRelType(args ...ast.BaseTerm) ast.ApplyFn { |