Note: information on this page refers to Ceylon 1.0, not to the current release.

Iterable enumeration

Iterable enumeration is a notation for creating instances of Iterable.


{Integer|Float|String+} tuple = {1, 2.0, "three"};



Syntactically an iterable enumeration is an argument list enclosed within braces { and }.

The empty iteratable, {}, has the value empty and the type Empty


the type of an iterable enumeration is simply the Iterable type of the union of the types of the elements in the expression.

See also