Skip to content

Instantly share code, notes, and snippets.

@BrooklinJazz
Created June 7, 2021 22:08
Show Gist options
  • Select an option

  • Save BrooklinJazz/9c2d1442c1ad4e22da7d648b0b5476d0 to your computer and use it in GitHub Desktop.

Select an option

Save BrooklinJazz/9c2d1442c1ad4e22da7d648b0b5476d0 to your computer and use it in GitHub Desktop.
Tuple examples in Elixir
Tuple.append({1}, 2) # {1, 2}
Tuple.duplicate(0, 5) # {0, 0, 0, 0, 0}
Tuple.insert_at({1, 3}, 1, 2) # {1, 2, 3}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment