Skip to content

Instantly share code, notes, and snippets.

@practicingruby
Created January 3, 2014 23:18
Show Gist options
  • Save practicingruby/8248613 to your computer and use it in GitHub Desktop.
Save practicingruby/8248613 to your computer and use it in GitHub Desktop.
my_tuple_to_list({}) -> [];
my_tuple_to_list(T) ->
[erlang:element(1, T) | my_tuple_to_list(erlang:delete_element(1, T))].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment