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.

Usage

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

Description

Syntax

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

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

Type

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