T x
To cast a Macaulay2 thing to a foreign object with a union type, give the type followed by the thing. The appropriate member is determined automatically by foreignObject.
|
|
|
To avoid ambiguity, it may be helpful to first cast the thing to the appropriate foreign type.
|