Tuple syntax Mar 3, 2016 This example shows the literal syntax to create a tuple and also how to pattern match. {:ok, 1, "a"} # pattern match {:ok, result} = {:ok, "good"} # this raises a match error {:ok, result} = {:ok, "good", "one more"} # empty tuple {}