# Tuples and Named Tuples
{id: tuples}

## Create Tuple
{id: tuple-create}

* [Tuple API](https://crystal-lang.org/api/Tuple.html)
* [Tuple reference](https://crystal-lang.org/reference/syntax_and_semantics/literals/tuple.html)

![](examples/tuples/create.cr)
![](examples/tuples/create.out)


## Create Named Tuple
{id: create-named-tuple}

![](examples/tuples/create_named_tuple.cr)

## Access fields of Named Tuple
{id: access-fields-of-named-tuple}

![](examples/tuples/named_tuple_fields.cr)

## Named Tuple with non-alphanumeric fields
{id: named-tuple-with-non-alphanumeric-fields}

![](examples/tuples/named_tuple_with_non_alnum_fields.cr)

## Named Tuple with optional field
{id: named-tuple-with-optional-field}

![](examples/tuples/optional_field.cr)

