Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
GAP 将过程调用与函数区分开来:函数返回值,而过程调用产生效果。写一个函数很好,但是在 GAP 中写一个过程调用的语法是什么?
我相信语法是一样的。您只需省略 return 语句,如果没有变量,则应在过程中进行修改。但是如果您必须返回一些值,我建议您应该将它们作为列表返回(即 [a, b,c,...]. )。