Skip to content

Instantly share code, notes, and snippets.

@BrooklinJazz
Last active June 7, 2021 18:48
Show Gist options
  • Select an option

  • Save BrooklinJazz/15af60aaab5e3f03495be1958bd057df to your computer and use it in GitHub Desktop.

Select an option

Save BrooklinJazz/15af60aaab5e3f03495be1958bd057df to your computer and use it in GitHub Desktop.
List module examples
List.last([1,2,3]) # 3
List.first([1, 2, 3]) # 1
List.delete([1,2,3], 1) # [2, 3]
List.delete_at([1,2,3], 0) # [2, 3]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment