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 Macaulay2Doc/ov_language.m2:467:0.