A function may return multiple values by returning a sequence. Multiple assignment (see =) or multiple local assignment (see :=) can be used to assign the values to separate variables, if the number of values to be returned is known.
|
|
|
|
|
Simple assignment may be used if the number of values to be returned is unknown.
|
|
|
|
|
The source of this document is in /build/reproducible-path/macaulay2-1.25.06+ds/M2/Macaulay2/packages/Macaulay2Doc/ov_language.m2:467:0.