如何在 GAP 中编写过程调用?

How do you write a procedure call in GAP?

GAP 区分了一个 procedure call from a function: functions return a value whereas procedure calls produce an effect. Writing a function is fine,但是在 GAP 中编写过程调用的语法是什么?

我相信语法是一样的。你只需要省略 return 语句,如果没有变量,应该在过程中修改。但是如果你必须 return 一些值,我建议你应该 return 它们作为列表(即 [a, b,c,...]. )。