Sfairadora

  • Reference Guide

union_subtype

union_subtype(type, n)
The type parameter must be of the type union category. The function returns the type of the n-th member of the union. The members are indexed from 0. If the parameter is not a type union, n is negative, or beyond the last member index, an error is returned. The number of the union members can be determined by the union_size function.

See Also