Skip to content

Implement tuples #103

Description

@71104

The main difference between tuples and lists is that the former have heterogeneous types, while the latter have only one inner type.

For example, we can have a list of integers and a tuple of (real, boolean), but not the opposite.

A consequence of this is that tuples have a finite arity/length that is known at compile time, while lists can grow arbitrarily. This is because infinite different types can't possibly be expressed.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions