Created
January 3, 2014 23:18
-
-
Save practicingruby/8248613 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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