Skip to content

Instantly share code, notes, and snippets.

@julioterra
Created October 3, 2011 07:12
Show Gist options
  • Select an option

  • Save julioterra/1258607 to your computer and use it in GitHub Desktop.

Select an option

Save julioterra/1258607 to your computer and use it in GitHub Desktop.
arrays and bare lists
array_1 = [array, array] # this will result in [[1, 2, 3], [1, 2, 3]]
array_2 = [*array, array] # this will result in [1, 2, 3, [1, 2, 3]]
array_3 = [*array, *array] # this will result in [1, 2, 3, 1, 2, 3]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment